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 =
|
void *data =
|
||||||
#ifdef RUBY_ASAN_ENABLED
|
#ifdef RUBY_ASAN_ENABLED
|
||||||
ec;
|
/* gc_mark_machine_stack_location_maybe() uses data as const */
|
||||||
|
(rb_execution_context_t *)ec;
|
||||||
#else
|
#else
|
||||||
NULL;
|
NULL;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue