diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-09-09 16:25:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-09-09 16:25:43 +0900 |
commit | a2ae7450d75bafbbbbd1cf9c1b5ada09038d7cf6 (patch) | |
tree | b1f071f339e1f290afb09f3e1c3665ef191181c4 | |
parent | 330b2ffb51dc27f82a1cb820db189b0bd2b33422 (diff) |
Suppress discards qualifiers warning with ASN
-rw-r--r-- | gc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |