diff options
author | Peter Zhu <[email protected]> | 2024-09-12 15:04:18 -0400 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-09-13 10:06:57 -0400 |
commit | c996f4091fb7af3ff28842ff4b6facdb7f0c35a2 () | |
tree | 80f21351f732749fe5f50497efcc97fbfab446d8 | |
parent | f0dcbbe9b9de45669dad67bd99d4539ccd4bbc83 (diff) |
Ignore -Wdangling-pointer in rb_gc_set_stack_end
Fixes this compiler warning: thread.c:4530:18: warning: storing the address of local variable ‘stack_end’ in ‘*stack_end_p’ [-Wdangling-pointer=] 4530 | *stack_end_p = &stack_end; | ~~~~~~~~~~~~~^~~~~~~~~~~~
-rw-r--r-- | thread.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -4527,7 +4527,12 @@ void rb_gc_set_stack_end(VALUE **stack_end_p) { VALUE stack_end; *stack_end_p = &stack_end; } #endif |