diff options
author | Nobuyoshi Nakada <[email protected]> | 2025-04-30 18:35:25 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2025-04-30 20:04:10 +0900 |
commit | b42afa1dbcbb91e89852b3b3bc72484d7f0a5528 (patch) | |
tree | 8f60ba422056d6324f303245f327c84e0fc5da7b /symbol.c | |
parent | 545aafa2a27d433c3282ab10e95011dee5c63835 (diff) |
Suppress gcc 15 unterminated-string-initialization warnings
Diffstat (limited to 'symbol.c')
-rw-r--r-- | symbol.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -22,6 +22,7 @@ #include "symbol.h" #include "vm_sync.h" #include "builtin.h" +#include "ruby/internal/attr/nonstring.h" #if defined(USE_SYMBOL_GC) && !(USE_SYMBOL_GC+0) # undef USE_SYMBOL_GC @@ -171,7 +172,7 @@ rb_id_attrset(ID id) /* make new symbol and ID */ if (!(str = lookup_id_str(id))) { - static const char id_types[][8] = { + RBIMPL_ATTR_NONSTRING() static const char id_types[][8] = { "local", "instance", "invalid", |