aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-04-18 05:53:10 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-04-21 13:07:02 +0900
commit735e035bf54e018fa629f6601d882fc0b097e1fc (patch)
tree8c1e6f3a7bc1e1484577d386598f1ea7876307c5 /process.c
parentadab82b9a71f60ad1c7f4f8c134a5ae9198ab32a (diff)
downloadruby-735e035bf54e018fa629f6601d882fc0b097e1fc.tar.gz
__GNUC__ is too lax
Ditto for 4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index efe9984348..0d0b466686 100644
--- a/process.c
+++ b/process.c
@@ -3958,7 +3958,7 @@ disable_child_handler_fork_child(struct child_handler_disabler_state *old, char
}
COMPILER_WARNING_PUSH
-#ifdef __GNUC__
+#if __has_warning("-Wdeprecated-declarations") || RUBY3_COMPILER_IS(GCC)
COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
#endif
static rb_pid_t
@@ -4076,7 +4076,7 @@ rb_fork_async_signal_safe(int *status,
}
COMPILER_WARNING_PUSH
-#ifdef __GNUC__
+#if __has_warning("-Wdeprecated-declarations") || RUBY3_COMPILER_IS(GCC)
COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
#endif
rb_pid_t