tests/sys/sys: Raise WARNS

MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Mark Johnston 2021-09-24 11:31:53 -04:00
parent 9cce0ef95a
commit d7cf1b262f
4 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)