summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-10 14:37:17 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-09-10 14:37:17 +0900
commitdf1721c668cfd20a08ec6369de89ea314c1d4d19 (patch)
tree3e983117c5669e8f8401a5ed7041a52c41878554 /internal.h
parentf5024de002fa82dfe5730b245ad24b8fc3a68424 (diff)
Fixed GCC version for diagnostic-pragmas
"GCC diagnostic push/pop" seems appeared at gcc 4.6.
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal.h b/internal.h
index 7446ce6041..cf0c3c94fc 100644
--- a/internal.h
+++ b/internal.h
@@ -2609,8 +2609,8 @@ rb_obj_builtin_type(VALUE obj)
# define COMPILER_WARNING_IGNORED(flag) \
COMPILER_WARNING_PRAGMA(COMPILER_WARNING_SPECIFIER(ignored, flag))
-#elif GCC_VERSION_SINCE(4, 2, 0)
-/* https://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Diagnostic-Pragmas.html */
+#elif GCC_VERSION_SINCE(4, 6, 0)
+/* https://gcc.gnu.org/onlinedocs/gcc-4.6.4/gcc/Diagnostic-Pragmas.html */
# define COMPILER_WARNING_PUSH _Pragma("GCC diagnostic push")
# define COMPILER_WARNING_POP _Pragma("GCC diagnostic pop")
# define COMPILER_WARNING_SPECIFIER(kind, msg) \