Disable more warnings, and specify that the no-unused-local-typedef operation should only be used with clang

This commit is contained in:
Rasmus Karlsson 2018-04-14 22:31:00 +02:00
parent a684420e89
commit 253ccc938e

View file

@ -326,8 +326,15 @@ win32-msvc* {
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-function
QMAKE_CXXFLAGS_WARN_ON += -Wno-switch
QMAKE_CXXFLAGS_WARN_ON += -Wno-deprecated-declarations
QMAKE_CXXFLAGS_WARN_ON += -Wno-sign-compare
# Disabling strict-aliasing warnings for now, although we probably want to re-enable this in the future
QMAKE_CXXFLAGS_WARN_ON += -Wno-strict-aliasing
equals(QMAKE_CXX, "clang++") {
QMAKE_CXXFLAGS_WARN_ON += -Wno-unused-local-typedef
}
}
# do not use windows min/max macros
#win32 {