ruby-changes:60722
From: =E5=8D=9C=E9=83=A8=E6=98=8C=E5=B9=B3 <ko1@a...>
Date: Fri, 10 Apr 2020 16:17:50 +0900 (JST)
Subject: [ruby-changes:60722] 4b853932ea (master): mjit_worker: __GNUC__ is too lax
https://git.ruby-lang.org/ruby.git/commit/?id=4b853932ea 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?= <shyouhei@r...> 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 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, ...) https://github.com/ruby/ruby/blob/trunk/mjit_worker.c#L568 } 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/