Suppress discards qualifiers warning with ASN

This commit is contained in:
Nobuyoshi Nakada 2024-09-09 16:25:43 +09:00
parent 330b2ffb51
commit a2ae7450d7
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

3
gc.c
View File

@ -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