Add RBIMPL_ATTR_NONSTRING_ARRAY() macro for GCC 15

This commit is contained in:
Nobuyoshi Nakada 2025-05-05 16:16:26 +09:00 committed by Nobuyoshi Nakada
parent ce51ef30df
commit bbf1130f91
Notes: git 2025-05-05 09:25:18 +00:00
3 changed files with 8 additions and 2 deletions

View file

@ -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",