aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/optional/capi/ext/thread_spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/optional/capi/ext/thread_spec.c')
-rw-r--r--spec/ruby/optional/capi/ext/thread_spec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c
index 11379bbf2f..d69c463ef4 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) {
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) {