зеркало из https://github.com/github/ruby.git
Fixed GCC version for diagnostic-pragmas
"GCC diagnostic push/pop" seems appeared at gcc 4.6.
This commit is contained in:
Родитель
f5024de002
Коммит
df1721c668
|
@ -2609,8 +2609,8 @@ rb_obj_builtin_type(VALUE obj)
|
||||||
# define COMPILER_WARNING_IGNORED(flag) \
|
# define COMPILER_WARNING_IGNORED(flag) \
|
||||||
COMPILER_WARNING_PRAGMA(COMPILER_WARNING_SPECIFIER(ignored, flag))
|
COMPILER_WARNING_PRAGMA(COMPILER_WARNING_SPECIFIER(ignored, flag))
|
||||||
|
|
||||||
#elif GCC_VERSION_SINCE(4, 2, 0)
|
#elif GCC_VERSION_SINCE(4, 6, 0)
|
||||||
/* https://gcc.gnu.org/onlinedocs/gcc-4.2.0/gcc/Diagnostic-Pragmas.html */
|
/* https://gcc.gnu.org/onlinedocs/gcc-4.6.4/gcc/Diagnostic-Pragmas.html */
|
||||||
# define COMPILER_WARNING_PUSH _Pragma("GCC diagnostic push")
|
# define COMPILER_WARNING_PUSH _Pragma("GCC diagnostic push")
|
||||||
# define COMPILER_WARNING_POP _Pragma("GCC diagnostic pop")
|
# define COMPILER_WARNING_POP _Pragma("GCC diagnostic pop")
|
||||||
# define COMPILER_WARNING_SPECIFIER(kind, msg) \
|
# define COMPILER_WARNING_SPECIFIER(kind, msg) \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче