summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-09-07 14:25:41 +0100
committerVincent Sanders <vince@kyllikki.org>2018-09-07 14:25:41 +0100
commitc3d3023e4acd8015b3f53c6fb1d55f27417fe8df (patch)
tree71bdb2fda0377eb1bfaa295da017284e52df56d7
parente4537cb37ed5b075c62723c9a49348c76eeb3d5c (diff)
downloadnetsurf-c3d3023e4acd8015b3f53c6fb1d55f27417fe8df.tar.gz
netsurf-c3d3023e4acd8015b3f53c6fb1d55f27417fe8df.tar.bz2
stop overriding non test warning flags
-rw-r--r--test/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Makefile b/test/Makefile
index 4f9dd22c9..85cc7c4e4 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -127,15 +127,15 @@ endef
$(eval $(call pkg_cfg_detect_lib,check,Check))
-COMMON_WARNFLAGS = -W -Wall -Wundef -Wpointer-arith -Wcast-align \
+TEST_WARNFLAGS = -W -Wall -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wmissing-declarations -Wuninitialized
ifneq ($(CC_MAJOR),2)
- COMMON_WARNFLAGS += -Wno-unused-parameter
+ TEST_WARNFLAGS += -Wno-unused-parameter
endif
BASE_TESTCFLAGS := -std=c99 -g \
- $(COMMON_WARNFLAGS) \
+ $(TEST_WARNFLAGS) \
-D_DEFAULT_SOURCE \
-D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=600 \
@@ -156,7 +156,7 @@ TESTLDFLAGS := -L$(TESTROOT) \
# malloc faliure injection generator
$(TESTROOT)/libmalloc_fig.so:test/malloc_fig.c
- $(CC) -shared -fPIC -I. -std=c99 $(COMMON_WARNFLAGS) $^ -o $@
+ $(CC) -shared -fPIC -I. -std=c99 $(TEST_WARNFLAGS) $^ -o $@
# Source files for all tests being compiled
TESTSOURCES :=