From df1721c668cfd20a08ec6369de89ea314c1d4d19 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 10 Sep 2019 14:37:17 +0900 Subject: [PATCH] Fixed GCC version for diagnostic-pragmas "GCC diagnostic push/pop" seems appeared at gcc 4.6. --- internal.h | 4 ++-- 1 file 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) \