summaryrefslogtreecommitdiff
path: root/mjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'mjit.c')
-rw-r--r--mjit.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mjit.c b/mjit.c
index 36ffae4bf2..43449851ec 100644
--- a/mjit.c
+++ b/mjit.c
@@ -381,7 +381,14 @@ start_process(const char *path, char *const *argv)
}
dev_null = rb_cloexec_open(ruby_null_device, O_WRONLY, 0);
+#ifdef __GNUC__
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+#endif
if ((pid = vfork()) == 0) {
+#ifdef __GNUC__
+# pragma GCC diagnostic pop
+#endif
umask(0077);
if (mjit_opts.verbose == 0) {
/* CC can be started in a thread using a file which has been