From 4b853932eaa7fa4acf8a0f0c9b7c695bb4f5e76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3?= Date: Thu, 9 Apr 2020 15:47:44 +0900 Subject: mjit_worker: __GNUC__ is too lax Namely icc defines __GNUC__, but doesn't have -Wdeprecated-declarations --- mjit_worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mjit_worker.c') 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`. -- cgit v1.2.3