aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-02-23 23:35:23 +0100
committerDaniel Stenberg <daniel@haxx.se>2018-03-04 19:46:26 +0100
commit8b0b1a30881590e70082784e16f3c2c66d88b218 (patch)
treece286b6ee193d73373f95d92fd5230fb788529e0 /tests/unit
parent68d84cfe984e7d0483fad14fdd7deef4bf67de1b (diff)
build: get CFLAGS (including -werror) used for examples and tests
... so that the CI and more detects compiler warnings/errors properly! Closes #2337
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/Makefile.am4
-rw-r--r--tests/unit/unit1607.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/Makefile.am b/tests/unit/Makefile.am
index 61b72c0db..fab82d2b0 100644
--- a/tests/unit/Makefile.am
+++ b/tests/unit/Makefile.am
@@ -5,7 +5,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
-# Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+# Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -50,6 +50,8 @@ endif
EXTRA_DIST = Makefile.inc CMakeLists.txt
+CFLAGS += @CURL_CFLAG_EXTRAS@
+
# Prevent LIBS from being used for all link targets
LIBS = $(BLANK_AT_MAKETIME)
diff --git a/tests/unit/unit1607.c b/tests/unit/unit1607.c
index 135030cac..71c59939b 100644
--- a/tests/unit/unit1607.c
+++ b/tests/unit/unit1607.c
@@ -28,7 +28,7 @@
#include "memdebug.h" /* LAST include file */
static struct Curl_easy *easy;
-struct curl_hash *hostcache;
+static struct curl_hash *hostcache;
static void unit_stop(void)
{