Enable -WX (warnings are errors) for MSVC 2015
Change-Id: Ib57b52598e2f452985e9fffd1458b565f9bda0f8 Reviewed-by: Kai Koehne <kai.koehne@qt.io>
This commit is contained in:
parent
5d935dca0c
commit
a372cf5a80
@ -100,9 +100,9 @@ warnings_are_errors:warning_clean {
|
||||
# Work-around for bug https://code.google.com/p/android/issues/detail?id=58135
|
||||
android: QMAKE_CXXFLAGS_WARN_ON += -Wno-error=literal-suffix
|
||||
}
|
||||
} else:msvc {
|
||||
# enable for MSVC 2012, MSVC 2013
|
||||
equals(MSVC_VER, "11.0")|equals(MSVC_VER, "12.0"): QMAKE_CXXFLAGS_WARN_ON += -WX
|
||||
} else:msvc:!intel_icl {
|
||||
# enable for MSVC 2012, MSVC 2013, MSVC 2015
|
||||
contains(MSVC_VER, "1[124].0"): QMAKE_CXXFLAGS_WARN_ON += -WX
|
||||
}
|
||||
unset(ver)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user