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

Use gcc-specific pragma only on gcc (and the family)

This commit is contained in:
Nobuyoshi Nakada 2020-10-25 22:09:56 +09:00
parent ff2276ef8c
commit b6d0b3dfaf
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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) {