TESTS: Remove zero-length string and associated -Wformat massage

This was being patched out downstream in Debian. A solution that
works for everybody is to just not use a zero-length string when
testing formatting with no conversion specifications.
This commit is contained in:
Colin Snover 2017-11-20 21:46:37 -06:00
parent cf61174396
commit b89b9095d6
2 changed files with 1 additions and 8 deletions

View file

@ -29,13 +29,6 @@ TEST_LIBS += backends/platform/psp/memory.o \
backends/platform/psp/trace.o backends/platform/psp/trace.o
endif endif
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. # Enable this to get an X11 GUI for the error reporter.
#TEST_FLAGS += --gui=X11Gui #TEST_FLAGS += --gui=X11Gui
#TEST_LDFLAGS += -L/usr/X11R6/lib -lX11 #TEST_LDFLAGS += -L/usr/X11R6/lib -lX11