From c3d3023e4acd8015b3f53c6fb1d55f27417fe8df Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 7 Sep 2018 14:25:41 +0100 Subject: stop overriding non test warning flags --- test/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test') 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 := -- cgit v1.2.3