aboutsummaryrefslogtreecommitdiff
path: root/test/module.mk
diff options
context:
space:
mode:
authorMax Horn2009-11-24 22:11:27 +0000
committerMax Horn2009-11-24 22:11:27 +0000
commit494a2ab94d516d56b481cfe7311152d5e89495c4 (patch)
tree849be9fcbb571ea5c9310fcbd5a53763f6651a1e /test/module.mk
parent1a313a7eca87e9c135171d404ff10a90718f8c4c (diff)
downloadscummvm-rg350-494a2ab94d516d56b481cfe7311152d5e89495c4.tar.gz
scummvm-rg350-494a2ab94d516d56b481cfe7311152d5e89495c4.tar.bz2
scummvm-rg350-494a2ab94d516d56b481cfe7311152d5e89495c4.zip
TEST: Workaround for 'make test' when using -Werror
svn-id: r46131
Diffstat (limited to 'test/module.mk')
-rw-r--r--test/module.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/module.mk b/test/module.mk
index 79a1a12023..10efeef38c 100644
--- a/test/module.mk
+++ b/test/module.mk
@@ -13,6 +13,12 @@ TEST_FLAGS := --runner=StdioPrinter
TEST_CFLAGS := -I$(srcdir)/test/cxxtest
TEST_LDFLAGS :=
+ifdef HAVE_GCC3
+# In test/common/str.h, we test a zero length format string. This causes GCC
+# to generate a warning which in turn poses a problem when building with -Werror.
+# To work around this, we disable -Wformat here.
+TEST_CFLAGS += -Wno-format
+endif
# Enable this to get an X11 GUI for the error reporter.
#TEST_FLAGS += --gui=X11Gui