1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fixed GCC version for diagnostic-pragmas

"GCC diagnostic push/pop" seems appeared at gcc 4.6.
This commit is contained in:
Nobuyoshi Nakada 2019-09-10 14:37:17 +09:00
parent f5024de002
commit df1721c668
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -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) \