git: d7cf1b262f9f - main - tests/sys/sys: Raise WARNS

Mark Johnston markj at FreeBSD.org
Fri Sep 24 15:32:01 UTC 2021


The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=d7cf1b262f9ff5e799446f0cbbd007905ab4ae24

commit d7cf1b262f9ff5e799446f0cbbd007905ab4ae24
Author:     Mark Johnston <markj at FreeBSD.org>
AuthorDate: 2021-09-24 15:31:53 +0000
Commit:     Mark Johnston <markj at FreeBSD.org>
CommitDate: 2021-09-24 15:31:53 +0000

    tests/sys/sys: Raise WARNS
    
    MFC after:      1 week
    Sponsored by:   The FreeBSD Foundation
---
 tests/sys/sys/Makefile     | 2 --
 tests/sys/sys/arb_test.c   | 2 +-
 tests/sys/sys/rb_test.c    | 2 +-
 tests/sys/sys/splay_test.c | 2 +-
 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)


More information about the dev-commits-src-all mailing list