summaryrefslogtreecommitdiff
path: root/mjit_worker.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-04-09 15:47:44 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-04-10 16:17:30 +0900
commit4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d (patch)
tree0aaaf93c757a3c51325bab5f1cac112790e0ce59 /mjit_worker.c
parent1b2d351b216661e03d497dfdce216e0d51474664 (diff)
mjit_worker: __GNUC__ is too lax
Namely icc defines __GNUC__, but doesn't have -Wdeprecated-declarations
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3011
Diffstat (limited to 'mjit_worker.c')
-rw-r--r--mjit_worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c
index eab7501..a2f6244 100644
--- a/mjit_worker.c
+++ b/mjit_worker.c
@@ -568,7 +568,7 @@ form_args(int num, ...)
}
COMPILER_WARNING_PUSH
-#ifdef __GNUC__
+#if __has_warning("-Wdeprecated-declarations") || RUBY3_COMPILER_IS(GCC)
COMPILER_WARNING_IGNORED(-Wdeprecated-declarations)
#endif
// Start an OS process of absolute executable path with arguments `argv`.