ruby-changes:57706
From: Nobuyoshi <ko1@a...>
Date: Tue, 10 Sep 2019 14:38:57 +0900 (JST)
Subject: [ruby-changes:57706] df1721c668 (master): Fixed GCC version for diagnostic-pragmas
https://git.ruby-lang.org/ruby.git/commit/?id=df1721c668 From df1721c668cfd20a08ec6369de89ea314c1d4d19 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Tue, 10 Sep 2019 14:37:17 +0900 Subject: Fixed GCC version for diagnostic-pragmas "GCC diagnostic push/pop" seems appeared at gcc 4.6. diff --git a/internal.h b/internal.h index 7446ce6..cf0c3c9 100644 --- a/internal.h +++ b/internal.h @@ -2609,8 +2609,8 @@ rb_obj_builtin_type(VALUE obj) https://github.com/ruby/ruby/blob/trunk/internal.h#L2609 # 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) \ -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/