Add some more interesting warnings new in GCC 6
Change-Id: Id69569111e7d4e619e22ffff144c7eee63734794 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
parent
5011b746f5
commit
54ef249cc6
@ -61,6 +61,8 @@ clang {
|
||||
QMAKE_CXXFLAGS_WARN_ON += -Wvla
|
||||
# GCC 5 introduced -Wdate-time
|
||||
greaterThan(QT_GCC_MAJOR_VERSION, 4): QMAKE_CXXFLAGS_WARN_ON += -Wdate-time
|
||||
# GCC 6 introduced these
|
||||
greaterThan(QT_GCC_MAJOR_VERSION, 5): QMAKE_CXXFLAGS_WARN_ON += -Wshift-overflow=2 -Wduplicated-cond
|
||||
}
|
||||
|
||||
warnings_are_errors:warning_clean {
|
||||
|
Loading…
Reference in New Issue
Block a user