Bug 1476475 - Disable c++98-compat warnings for clang-cl. r?Build
MozReview-Commit-ID: FOrkf5NgUIL
--- a/old-configure.in
+++ b/old-configure.in
@@ -1025,16 +1025,18 @@ case "$target" in
# which clang-cl doesn't understand.
CXXFLAGS="$CXXFLAGS -Wno-ignored-attributes"
# __attribute__((unused)) really means "might be unused" and
# we use it to avoid warnings about things that are unused
# in some compilation units, but used in many others. This
# warning insists on complaining about the latter case, which
# is annoying, and rather noisy.
CXXFLAGS="$CXXFLAGS -Wno-used-but-marked-unused"
+ # We don't worry about backward-compat with C++98.
+ CXXFLAGS="$CXXFLAGS -Wno-c++98-compat -Wno-c++98-compat-pedantic"
fi
# make 'foo == bar;' error out
CFLAGS="$CFLAGS -we4553"
CXXFLAGS="$CXXFLAGS -we4553"
# Silence VS2017 15.5+ TR1 deprecation warnings hit by older gtest versions
CXXFLAGS="$CXXFLAGS -D_SILENCE_TR1_NAMESPACE_DEPRECATION_WARNING"
LIBS="$LIBS kernel32.lib user32.lib gdi32.lib winmm.lib wsock32.lib advapi32.lib secur32.lib"
MOZ_DEBUG_LDFLAGS='-DEBUG -DEBUGTYPE:CV'