mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Suppress discards qualifiers warning with ASN
This commit is contained in:
parent
330b2ffb51
commit
a2ae7450d7
1 changed files with 2 additions and 1 deletions
3
gc.c
3
gc.c
|
@ -2349,7 +2349,8 @@ rb_gc_mark_machine_context(const rb_execution_context_t *ec)
|
|||
|
||||
void *data =
|
||||
#ifdef RUBY_ASAN_ENABLED
|
||||
ec;
|
||||
/* gc_mark_machine_stack_location_maybe() uses data as const */
|
||||
(rb_execution_context_t *)ec;
|
||||
#else
|
||||
NULL;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue