diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-09 15:47:44 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-04-10 16:17:30 +0900 |
commit | 4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d (patch) | |
tree | 0aaaf93c757a3c51325bab5f1cac112790e0ce59 | |
parent | 1b2d351b216661e03d497dfdce216e0d51474664 (diff) | |
download | ruby-4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d.tar.gz |
mjit_worker: __GNUC__ is too lax
Namely icc defines __GNUC__, but doesn't have -Wdeprecated-declarations
-rw-r--r-- | mjit_worker.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index eab7501ace..a2f62448e1 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`. |