1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

mjit_worker: __GNUC__ is too lax

Namely icc defines __GNUC__, but doesn't have -Wdeprecated-declarations
This commit is contained in:
卜部昌平 2020-04-09 15:47:44 +09:00
parent 1b2d351b21
commit 4b853932ea
Notes: git 2020-04-10 16:17:58 +09:00

View file

@ -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`.