aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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