diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-26 09:32:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-26 09:32:42 +0000 |
commit | 05316c40ac6872eb2b91b9d08b4b9e36cbac488d (patch) | |
tree | d4d8b088d5a21160d9166ca323cfba44d78ae438 /mjit.c | |
parent | 97538e813f8d41d7091aa6d1ffd15466117b26b1 (diff) |
fork() is deprecated on Solaris
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |