diff --git a/thread.c b/thread.c index 0f1a1d6b8b..feb4419726 100644 --- a/thread.c +++ b/thread.c @@ -4779,7 +4779,7 @@ rb_gc_set_stack_end(VALUE **stack_end_p) { VALUE stack_end; COMPILER_WARNING_PUSH -#ifdef __GNUC__ +#if RBIMPL_COMPILER_IS(GCC) COMPILER_WARNING_IGNORED(-Wdangling-pointer); #endif *stack_end_p = &stack_end;