aboutsummaryrefslogtreecommitdiff
path: root/tests/sys
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2021-09-24 15:31:53 +0000
committerMark Johnston <markj@FreeBSD.org>2021-09-24 15:31:53 +0000
commitd7cf1b262f9ff5e799446f0cbbd007905ab4ae24 (patch)
treebf78684c8ceaaf0eca97eeadb6b51fbe1e5c126f /tests/sys
parent9cce0ef95a07bab80e768d4dc6cf1aab8baaff70 (diff)
downloadsrc-d7cf1b262f9ff5e799446f0cbbd007905ab4ae24.tar.gz
src-d7cf1b262f9ff5e799446f0cbbd007905ab4ae24.zip
tests/sys/sys: Raise WARNS
MFC after: 1 week Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'tests/sys')
-rw-r--r--tests/sys/sys/Makefile2
-rw-r--r--tests/sys/sys/arb_test.c2
-rw-r--r--tests/sys/sys/rb_test.c2
-rw-r--r--tests/sys/sys/splay_test.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/tests/sys/sys/Makefile b/tests/sys/sys/Makefile
index eed87935e6e7..95739c127632 100644
--- a/tests/sys/sys/Makefile
+++ b/tests/sys/sys/Makefile
@@ -6,8 +6,6 @@ TESTSDIR= ${TESTSBASE}/sys/sys
ATF_TESTS_C= arb_test bitstring_test qmath_test rb_test splay_test
-WARNS?= 5
-
.if ${COMPILER_TYPE} == "gcc"
CFLAGS.bitstring_test= -fno-strict-overflow
.endif
diff --git a/tests/sys/sys/arb_test.c b/tests/sys/sys/arb_test.c
index 9cf3f2052688..adbd7794e6f8 100644
--- a/tests/sys/sys/arb_test.c
+++ b/tests/sys/sys/arb_test.c
@@ -41,7 +41,7 @@ struct node {
int key;
};
-ARB32_HEAD(tree, node) *root;
+static ARB32_HEAD(tree, node) *root;
static int
compare(const struct node *a, const struct node *b)
diff --git a/tests/sys/sys/rb_test.c b/tests/sys/sys/rb_test.c
index 287422ccf902..c558ad6098cf 100644
--- a/tests/sys/sys/rb_test.c
+++ b/tests/sys/sys/rb_test.c
@@ -39,7 +39,7 @@ struct node {
int key;
};
-RB_HEAD(tree, node) root;
+static RB_HEAD(tree, node) root;
static int
compare(struct node *a, struct node *b)
diff --git a/tests/sys/sys/splay_test.c b/tests/sys/sys/splay_test.c
index 9b14c7c855cf..f0cf4ecd5eb6 100644
--- a/tests/sys/sys/splay_test.c
+++ b/tests/sys/sys/splay_test.c
@@ -39,7 +39,7 @@ struct node {
int key;
};
-SPLAY_HEAD(tree, node) root;
+static SPLAY_HEAD(tree, node) root;
static int
compare(struct node *a, struct node *b)