ruby-changes:63436
From: Nobuyoshi <ko1@a...>
Date: Mon, 26 Oct 2020 08:28:35 +0900 (JST)
Subject: [ruby-changes:63436] b6d0b3dfaf (master): Use gcc-specific pragma only on gcc (and the family)
https://git.ruby-lang.org/ruby.git/commit/?id=b6d0b3dfaf From b6d0b3dfaf5de60d9afacd18fcc9292973d1023a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 25 Oct 2020 22:09:56 +0900 Subject: Use gcc-specific pragma only on gcc (and the family) diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c index 11379bb..d69c463 100644 --- a/spec/ruby/optional/capi/ext/thread_spec.c +++ b/spec/ruby/optional/capi/ext/thread_spec.c @@ -19,7 +19,9 @@ static VALUE thread_spec_rb_thread_alone(VALUE self) { https://github.com/ruby/ruby/blob/trunk/spec/ruby/optional/capi/ext/thread_spec.c#L19 return rb_thread_alone() ? Qtrue : Qfalse; } +#if defined(__GNUC__) #pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif /* This is unblocked by unblock_func(). */ static void* blocking_gvl_func(void* data) { -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/