summaryrefslogtreecommitdiff
path: root/symbol.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2025-05-01 10:25:02 -0700
committerTakashi Kokubun <[email protected]>2025-05-01 10:26:20 -0700
commit67b91e780798b80038dbfb39a06831918a75259f (patch)
tree20a92f51b1ba65a323f527c22e3f8bf641c6b23b /symbol.c
parent17e63f90ca8b9755b515385318460cb7f92a7120 (diff)
Drop an ignored attribute
GCC 13.3.0 (Ubuntu 24.04) emits the following warning: ../symbol.c: In function ‘rb_id_attrset’: ../symbol.c:175:9: warning: ‘nonstring’ attribute ignored on objects of type ‘const char[][8]’ [-Wattributes] 175 | RBIMPL_ATTR_NONSTRING() static const char id_types[][8] = { | ^~~~~~~~~~~~~~~~~~~~~
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 8ba0b818a8..12dea88158 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))) {
- RBIMPL_ATTR_NONSTRING() static const char id_types[][8] = {
+ static const char id_types[][8] = {
"local",
"instance",
"invalid",