diff --git a/thread.c b/thread.c index 0e5de6af71..6928eafe58 100644 --- a/thread.c +++ b/thread.c @@ -4742,7 +4742,7 @@ rb_gc_set_stack_end(VALUE **stack_end_p) { VALUE stack_end; COMPILER_WARNING_PUSH -#if __has_warning("-Wdangling-pointer") +#ifdef __GNUC__ COMPILER_WARNING_IGNORED(-Wdangling-pointer); #endif *stack_end_p = &stack_end;