summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
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;