summaryrefslogtreecommitdiffstats
path: root/subsurface-configure.pri
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 08:11:50 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-09 08:11:50 -0700
commit97f3b3b7470e1175772b1826176655fb7028e5c8 (patch)
tree7154a6850589ffb627bc86ab5fae1c41e90d61ba /subsurface-configure.pri
parentcfbbf1bffec5e917aa4987f33825f324e2f03976 (diff)
downloadsubsurface-97f3b3b7470e1175772b1826176655fb7028e5c8.tar.gz
Turn down warnings (after going through them)
This was getting way too noisy with tons of false positives. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-configure.pri')
-rw-r--r--subsurface-configure.pri10
1 files changed, 9 insertions, 1 deletions
diff --git a/subsurface-configure.pri b/subsurface-configure.pri
index c1eef761f..838513978 100644
--- a/subsurface-configure.pri
+++ b/subsurface-configure.pri
@@ -5,7 +5,15 @@
# - calling implicit functions
# - casting from integers to pointers or vice-versa without an explicit cast
# Also turn on C99 mode with GNU extensions
-*-g++*: QMAKE_CFLAGS += -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-int
+*-g++*: QMAKE_CFLAGS += -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=implicit-int
+
+# these warnings are in general just wrong and annoying - but should be
+# turned on every once in a while in case they do show the occasional
+# actual bug
+*-g++*: QMAKE_CFLAGS += -Wno-unused-result -Wno-maybe-uninitialized -Wno-pointer-sign -fno-strict-overflow
+*-g++*: QMAKE_CXXFLAGS += -Wno-maybe-uninitialized -fno-strict-overflow
+
+
!win32-msvc*: QMAKE_CFLAGS += -std=gnu99
# Don't turn warnings on (but don't suppress them either)