summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/qt_common.prf
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-05-07 21:59:01 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-05-29 18:46:47 +0000
commit54ef249cc661ebaf0cdd7e5c54ce644a8a23352f (patch)
tree9fb976f174c9128454a4c615b2bbaa89656202ed /mkspecs/features/qt_common.prf
parent5011b746f5fd9ae93d0a60ec0517eb7d7e0e189c (diff)
Add some more interesting warnings new in GCC 6
Change-Id: Id69569111e7d4e619e22ffff144c7eee63734794 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'mkspecs/features/qt_common.prf')
-rw-r--r--mkspecs/features/qt_common.prf2
1 files changed, 2 insertions, 0 deletions
diff --git a/mkspecs/features/qt_common.prf b/mkspecs/features/qt_common.prf
index 4b110768bf..00a6aef51f 100644
--- a/mkspecs/features/qt_common.prf
+++ b/mkspecs/features/qt_common.prf
@@ -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 {