From 494a2ab94d516d56b481cfe7311152d5e89495c4 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 24 Nov 2009 22:11:27 +0000 Subject: TEST: Workaround for 'make test' when using -Werror svn-id: r46131 --- test/module.mk | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/module.mk') 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 -- cgit v1.2.3