summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-04-30 18:35:25 +0900
committerNobuyoshi Nakada <[email protected]>2025-04-30 20:04:10 +0900
commitb42afa1dbcbb91e89852b3b3bc72484d7f0a5528 (patch)
tree8f60ba422056d6324f303245f327c84e0fc5da7b /symbol.c
parent545aafa2a27d433c3282ab10e95011dee5c63835 (diff)
Suppress gcc 15 unterminated-string-initialization warnings
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/symbol.c b/symbol.c
index 5f95769292..8ba0b818a8 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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",