summaryrefslogtreecommitdiff
path: root/include/ruby/internal
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2025-10-08 10:21:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2025-10-08 18:17:19 +0900
commit43dbb9a93f4de3f1170d7d18641c30e81cc08365 (patch)
tree9688c8d9eb03d1aa403c18a72724f5d103113591 /include/ruby/internal
parent9ae3e20953edc20d8e21075e13c877ae42f47fa2 (diff)
[Bug #21629] Enable `nonstring` attribute on clang 21
Diffstat (limited to 'include/ruby/internal')
-rw-r--r--include/ruby/internal/attr/nonstring.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/internal/attr/nonstring.h b/include/ruby/internal/attr/nonstring.h
index 9a66180e19..5ad6ef2a86 100644
--- a/include/ruby/internal/attr/nonstring.h
+++ b/include/ruby/internal/attr/nonstring.h
@@ -27,6 +27,8 @@
# define RBIMPL_ATTR_NONSTRING() __attribute__((nonstring))
# if RBIMPL_COMPILER_SINCE(GCC, 15, 0, 0)
# define RBIMPL_ATTR_NONSTRING_ARRAY() RBIMPL_ATTR_NONSTRING()
+# elif RBIMPL_COMPILER_SINCE(Clang, 21, 0, 0)
+# define RBIMPL_ATTR_NONSTRING_ARRAY() RBIMPL_ATTR_NONSTRING()
# else
# define RBIMPL_ATTR_NONSTRING_ARRAY() /* void */
# endif