summaryrefslogtreecommitdiff
path: root/test/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-08-08 13:52:54 +0100
committerVincent Sanders <vince@kyllikki.org>2016-08-08 13:52:54 +0100
commitc1aec1cfa0d5fa64dff2d177800797d7e3d8c15c (patch)
tree2c7a99bc4685dfb0bede5601c0656b11522175b9 /test/Makefile
parent05d2b9a92cd718a38aed647400159c6c40a743d2 (diff)
downloadnetsurf-c1aec1cfa0d5fa64dff2d177800797d7e3d8c15c.tar.gz
netsurf-c1aec1cfa0d5fa64dff2d177800797d7e3d8c15c.tar.bz2
fix urldb warning and test build
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 6bc037cfd..0253f4dc0 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -11,7 +11,7 @@ nsurl_SRCS := utils/corestrings.c utils/nsurl.c utils/idna.c \
urldbtest_SRCS := content/urldb.c \
utils/idna.c utils/bloom.c utils/nsoption.c utils/nsurl.c \
utils/corestrings.c \
- utils/hashtable.c utils/messages.c utils/utils.c \
+ utils/hashtable.c utils/messages.c utils/time.c utils/utils.c \
test/log.c test/urldbtest.c
# low level cache sources
@@ -85,8 +85,15 @@ endef
$(eval $(call pkg_cfg_detect_lib,check,Check))
+COMMON_WARNFLAGS = -W -Wall -Wundef -Wpointer-arith -Wcast-align \
+ -Wwrite-strings -Wmissing-declarations -Wuninitialized
-TESTCFLAGS := -std=c99 -g -Wall \
+ifneq ($(CC_MAJOR),2)
+ COMMON_WARNFLAGS += -Wno-unused-parameter
+endif
+
+TESTCFLAGS := -std=c99 -g \
+ $(COMMON_WARNFLAGS) \
-D_BSD_SOURCE \
-D_POSIX_C_SOURCE=200809L \
-D_XOPEN_SOURCE=600 \