aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes Schickel2009-07-04 19:04:39 +0000
committerJohannes Schickel2009-07-04 19:04:39 +0000
commitc48f71edf49aefbcba601a8b931d8339279d227f (patch)
treeb9c78233e425bffbbdedf7f263b9fde5c69622e0 /Makefile
parenteeb5ba9d507014a4429adc419c4c7f019f45af85 (diff)
downloadscummvm-rg350-c48f71edf49aefbcba601a8b931d8339279d227f.tar.gz
scummvm-rg350-c48f71edf49aefbcba601a8b931d8339279d227f.tar.bz2
scummvm-rg350-c48f71edf49aefbcba601a8b931d8339279d227f.zip
After discussing with Max, disable -Wmissing-format-attribute again. Also added a comment explaining why it is disabled.
svn-id: r42107
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 12718494c7..5771e692dc 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,12 @@ CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas -Wno-reorder
# Enable even more warnings...
CXXFLAGS+= -Wpointer-arith -Wcast-qual -Wcast-align
CXXFLAGS+= -Wshadow -Wimplicit -Wnon-virtual-dtor -Wwrite-strings
-CXXFLAGS+= -Wmissing-format-attribute
+
+# Currently we disable this gcc flag, since it will also warn in cases,
+# where using GCC_PRINTF (means: __attribute__((format(printf, x, y))))
+# is not possible, thus it would fail compiliation with -Werror without
+# being helpful.
+#CXXFLAGS+= -Wmissing-format-attribute
# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new