Bug 832280 - Disable MSVC warning C4482: nonstandard extension used: enum 'xyz' used in qualified name. r=ted

This commit is contained in:
Filippo Cristofoletti 2013-01-18 05:06:00 +09:00
Родитель 695464c4c0
Коммит df5af693e2
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -2181,6 +2181,9 @@ ia64*-hpux*)
CXXFLAGS="$CXXFLAGS -W3 -Gy -Fd\$(COMPILE_PDBFILE)"
# MSVC warning C4345 warns of newly conformant behavior as of VS2003.
# MSVC warning C4351 warns of newly conformant behavior as of VS2005.
# MSVC warning C4482 warns when an enum value is refered specifing the
# name of the enum itself. This behavior is allowed in C++11, and the
# warning has been removed in VS2012.
# MSVC warning C4800 warns when a value is implicitly cast to bool,
# because this also forces narrowing to a single byte, which can be a
# perf hit. But this matters so little in practice (and often we want
@ -2188,7 +2191,7 @@ ia64*-hpux*)
# MSVC warning C4819 warns some UTF-8 characters (e.g. copyright sign)
# on non-Western system locales even if it is in a comment.
CFLAGS="$CFLAGS -wd4819"
CXXFLAGS="$CXXFLAGS -wd4345 -wd4351 -wd4800 -wd4819"
CXXFLAGS="$CXXFLAGS -wd4345 -wd4351 -wd4482 -wd4800 -wd4819"
# make 'foo == bar;' error out
CFLAGS="$CFLAGS -we4553"
CXXFLAGS="$CXXFLAGS -we4553"