summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2025-05-05 16:16:26 +0900
committerNobuyoshi Nakada <[email protected]>2025-05-05 18:25:04 +0900
commitbbf1130f918ca26e33aba4711ccf99a8083517ea (patch)
tree8ce617405eb6d5e7a1f72afefc5e177a08156bfb /symbol.c
parentce51ef30df5bf07ec3881a377f0011b8f20ec507 (diff)
Add `RBIMPL_ATTR_NONSTRING_ARRAY()` macro for GCC 15
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13256
Diffstat (limited to 'symbol.c')
-rw-r--r--symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/symbol.c b/symbol.c
index 12dea88158..7925db451d 100644
--- a/symbol.c
+++ b/symbol.c
@@ -172,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_ARRAY() static const char id_types[][8] = {
"local",
"instance",
"invalid",