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:
parent
ff2276ef8c
commit
b6d0b3dfaf
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue