Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 14:09:01 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 8b1039f91865 - stable/13 - tests/sys/sys: Raise WARNS
Message-ID:  <202110011409.191E91R9077311@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by markj:

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

commit 8b1039f918658103bdc083c65b393dcc3c15e823
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2021-09-24 15:31:53 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2021-10-01 14:06:41 +0000

    tests/sys/sys: Raise WARNS
    
    Sponsored by:   The FreeBSD Foundation
    
    (cherry picked from commit d7cf1b262f9ff5e799446f0cbbd007905ab4ae24)
---
 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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110011409.191E91R9077311>