Skip to content

Commit 9fddb8d

Browse files
committed
Suppress dangling pointer warning by gcc
`__has_warning` is clang, not gcc.
1 parent 7ddc5e6 commit 9fddb8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

thread.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4742,7 +4742,7 @@ rb_gc_set_stack_end(VALUE **stack_end_p)
47424742
{
47434743
VALUE stack_end;
47444744
COMPILER_WARNING_PUSH
4745-
#if __has_warning("-Wdangling-pointer")
4745+
#ifdef __GNUC__
47464746
COMPILER_WARNING_IGNORED(-Wdangling-pointer);
47474747
#endif
47484748
*stack_end_p = &stack_end;

0 commit comments

Comments
 (0)