Use gcc-specific pragma only on gcc (and the family)
This commit is contained in:
parent
ff2276ef8c
commit
b6d0b3dfaf
@ -19,7 +19,9 @@ static VALUE thread_spec_rb_thread_alone(VALUE self) {
|
|||||||
return rb_thread_alone() ? Qtrue : Qfalse;
|
return rb_thread_alone() ? Qtrue : Qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* This is unblocked by unblock_func(). */
|
/* This is unblocked by unblock_func(). */
|
||||||
static void* blocking_gvl_func(void* data) {
|
static void* blocking_gvl_func(void* data) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user