summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2021-08-12 09:40:38 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2021-08-12 11:29:08 +0900
commit1cdc75104de1caa048d6eace3422b36dd69e6d70 (patch)
tree6846a13b987de23f7c2b97c646d8fe5aef9432ba
parente1fe209dd8d15eb05c8253f144eaa39e1aa6cfa3 (diff)
RBIMPL_ATTR_DEPRECATED: enable for GCC 10.3+
They fixed the bug.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4735
-rw-r--r--include/ruby/internal/attr/deprecated.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/attr/deprecated.h b/include/ruby/internal/attr/deprecated.h
index 8bc1db5185..874e416f83 100644
--- a/include/ruby/internal/attr/deprecated.h
+++ b/include/ruby/internal/attr/deprecated.h
@@ -35,7 +35,7 @@
#elif RBIMPL_HAS_EXTENSION(attribute_deprecated_with_message)
# define RBIMPL_ATTR_DEPRECATED(msg) __attribute__((__deprecated__ msg))
-#elif defined(__cplusplus) && RBIMPL_COMPILER_SINCE(GCC, 10, 1, 0) /* && RBIMPL_COMPILER_BEFORE(GCC, 10, X, Y) */
+#elif defined(__cplusplus) && RBIMPL_COMPILER_SINCE(GCC, 10, 1, 0) && RBIMPL_COMPILER_BEFORE(GCC, 10, 3, 0)
# /* https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95302 */
# define RBIMPL_ATTR_DEPRECATED(msg) /* disable until they fix this bug */