diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-30 07:53:24 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-30 07:53:24 +0000 |
commit | ab740cbb75c256e7a209f618857e136df78c6a88 (patch) | |
tree | df7e658faac45ecb4ce7912e4f4c0a7995c5bfc0 /mjit.c | |
parent | d83536c980fb96a880def3e952eb4920815eeb51 (diff) |
move #pragma out of functions
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18) reportedly fails to compile
cf: https://rubyci.org/logs/rubyci.s3.amazonaws.com/centos6/ruby-trunk/log/20180726T093003Z.fail.html.gz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit.c')
-rw-r--r-- | mjit.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -352,6 +352,10 @@ form_args(int num, ...) return res; } +COMPILER_WARNING_PUSH +#ifdef __GNUC__ +COMPILER_WARNING_IGNORED(-Wdeprecated-declarations) +#endif /* Start an OS process of executable PATH with arguments ARGV. Return PID of the process. TODO: Use the same function in process.c */ @@ -387,13 +391,7 @@ start_process(const char *path, char *const *argv) } dev_null = rb_cloexec_open(ruby_null_device, O_WRONLY, 0); - COMPILER_WARNING_PUSH; -#ifdef __GNUC__ - COMPILER_WARNING_IGNORED(-Wdeprecated-declarations); -#endif if ((pid = vfork()) == 0) { - COMPILER_WARNING_POP; - umask(0077); if (mjit_opts.verbose == 0) { /* CC can be started in a thread using a file which has been @@ -415,6 +413,7 @@ start_process(const char *path, char *const *argv) #endif return pid; } +COMPILER_WARNING_POP /* Execute an OS process of executable PATH with arguments ARGV. Return -1 or -2 if failed to execute, otherwise exit code of the process. |