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:
parent
f5024de002
commit
df1721c668
1 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue