Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Aug 2021 10:50:48 GMT
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: befc47822966 - stable/12 - Do a sweep and remove most WARNS=6 settings
Message-ID:  <202108291050.17TAommP058131@gitrepo.freebsd.org>

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

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

commit befc478229660bca9cbda38d73f6b9d7c8918ded
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2020-10-01 01:10:51 +0000
Commit:     Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2021-08-29 10:49:28 +0000

    Do a sweep and remove most WARNS=6 settings
    
    Repeating the default WARNS here makes it slightly more difficult to
    experiment with default WARNS changes, e.g. if we did something absolutely
    bananas and introduced a WARNS=7 and wanted to try lifting the default to
    that.
    
    Drop most of them; there is one in the blake2 kernel module, but I suspect
    it should be dropped -- the default WARNS in the rest of the build doesn't
    currently apply to kernel modules, and I haven't put too much thought into
    whether it makes sense to make it so.
    
    (cherry picked from commit 7cc42f6d25ef2e19059d088fa7d4853fe9afefb5)
---
 cddl/Makefile.inc                                  |  2 -
 gnu/usr.bin/dialog/Makefile                        |  2 -
 lib/googletest/Makefile.inc                        |  2 -
 lib/libcam/tests/Makefile                          |  2 -
 lib/libcrypt/tests/Makefile                        |  1 -
 lib/libiconv_modules/Makefile.inc                  |  1 -
 lib/libkvm/Makefile                                |  2 -
 lib/libkvm/tests/Makefile                          |  2 -
 lib/libpathconv/tests/Makefile                     |  1 -
 lib/libproc/tests/Makefile                         |  1 -
 lib/libsbuf/tests/Makefile                         |  2 -
 libexec/Makefile.inc                               |  1 -
 libexec/getty/Makefile                             |  1 -
 libexec/rtld-elf/Makefile                          |  1 -
 libexec/rtld-elf/tests/libpythagoras/Makefile      |  1 -
 libexec/tftpd/tests/Makefile                       |  1 -
 sbin/decryptcore/Makefile                          |  2 -
 sbin/ping/tests/Makefile                           |  2 -
 sbin/recoverdisk/Makefile                          |  2 +
 sys/teken/demo/Makefile                            |  2 -
 sys/teken/libteken/Makefile                        |  1 -
 sys/teken/stress/Makefile                          |  2 -
 tests/sys/Makefile.inc                             |  2 -
 tests/sys/aio/Makefile                             |  2 -
 tests/sys/audit/Makefile                           |  2 -
 tests/sys/auditpipe/Makefile                       |  2 +-
 tests/sys/capsicum/Makefile                        | 43 +++++++++++++++++++++-
 tests/sys/fs/fusefs/Makefile                       |  2 -
 tests/sys/kern/pipe/Makefile                       |  2 -
 tests/sys/mqueue/Makefile                          |  2 -
 tests/sys/net/Makefile                             |  2 +-
 tests/sys/netinet/Makefile                         |  2 -
 tests/sys/netmap/Makefile                          |  2 -
 tests/sys/opencrypto/Makefile                      |  2 -
 tests/sys/pjdfstest/pjdfstest/Makefile             |  2 -
 tools/regression/aio/aiop/Makefile                 |  2 -
 tools/regression/bpf/bpf_filter/Makefile           |  1 -
 tools/regression/doat/Makefile                     |  1 -
 tools/regression/geom_gpt/Makefile                 |  2 -
 tools/regression/include/stdatomic/Makefile        |  1 -
 tools/regression/netinet/ipbroadcast/Makefile      |  2 -
 tools/regression/rpcsec_gss/Makefile               |  1 -
 tools/regression/sockets/accept_fd_leak/Makefile   |  1 -
 tools/regression/sockets/accf_data_attach/Makefile |  1 -
 tools/regression/sockets/fstat/Makefile            |  1 -
 tools/regression/sockets/kqueue/Makefile           |  1 -
 tools/regression/sockets/listen_backlog/Makefile   |  1 -
 tools/regression/sockets/listen_kqueue/Makefile    |  1 -
 tools/regression/sockets/listenclose/Makefile      |  1 -
 tools/regression/sockets/pr_atomic/Makefile        |  1 -
 tools/regression/sockets/reconnect/Makefile        |  1 -
 tools/regression/sockets/rtsocket/Makefile         |  1 -
 tools/regression/sockets/sblock/Makefile           |  1 -
 tools/regression/sockets/sendfile/Makefile         |  1 -
 tools/regression/sockets/shutdown/Makefile         |  1 -
 tools/regression/sockets/sigpipe/Makefile          |  1 -
 tools/regression/sockets/so_setfib/Makefile        |  1 -
 tools/regression/sockets/udp_pingpong/Makefile     |  1 -
 tools/regression/sockets/unix_bindconnect/Makefile |  1 -
 tools/regression/sockets/unix_close_race/Makefile  |  1 -
 tools/regression/sockets/unix_gc/Makefile          |  1 -
 tools/regression/sockets/unix_sendtorace/Makefile  |  1 -
 tools/regression/sockets/unix_socket/Makefile      |  1 -
 tools/regression/sockets/unix_sorflush/Makefile    |  1 -
 tools/regression/sockets/zerosend/Makefile         |  1 -
 tools/test/auxinfo/Makefile                        |  1 -
 tools/test/iconv/posix/Makefile                    |  2 -
 tools/test/malloc/Makefile                         |  1 -
 tools/test/net/Makefile                            |  1 -
 tools/test/netfibs/Makefile                        |  1 -
 tools/test/ptrace/Makefile                         |  1 -
 tools/tools/aac/Makefile                           |  1 -
 tools/tools/cfi/Makefile                           |  1 -
 tools/tools/find-sb/Makefile                       |  1 -
 tools/tools/fixwhite/Makefile                      |  1 -
 tools/tools/gensnmpdef/Makefile                    |  2 -
 tools/tools/ifpifa/Makefile                        |  1 -
 tools/tools/ioat/Makefile                          |  2 -
 tools/tools/iwi/Makefile                           |  1 -
 tools/tools/ncpus/Makefile                         |  1 -
 tools/tools/pciroms/Makefile                       |  2 -
 tools/tools/syscall_timing/Makefile                |  2 -
 tools/tools/tscdrift/Makefile                      |  1 -
 tools/tools/vt/mkkfont/Makefile                    |  4 +-
 usr.bin/dpv/Makefile                               |  2 -
 usr.bin/getconf/tests/Makefile                     |  2 -
 usr.bin/mkimg/Makefile                             |  2 -
 usr.bin/posixshmcontrol/Makefile                   |  1 -
 usr.bin/proccontrol/Makefile                       |  1 -
 usr.bin/protect/Makefile                           |  1 -
 usr.sbin/bsdinstall/distextract/Makefile           |  1 -
 usr.sbin/bsdinstall/distfetch/Makefile             |  1 -
 usr.sbin/bsnmpd/tools/Makefile.inc                 |  2 -
 usr.sbin/ctld/Makefile                             |  1 -
 usr.sbin/iovctl/Makefile                           |  2 -
 usr.sbin/mlx5tool/Makefile                         |  1 -
 usr.sbin/pw/tests/Makefile                         |  1 -
 97 files changed, 48 insertions(+), 131 deletions(-)

diff --git a/cddl/Makefile.inc b/cddl/Makefile.inc
index 94a42492a4f0..687068d599e8 100644
--- a/cddl/Makefile.inc
+++ b/cddl/Makefile.inc
@@ -7,8 +7,6 @@ IGNORE_PRAGMA=	YES
 
 CFLAGS+=	-DNEED_SOLARIS_BOOLEAN
 
-WARNS?=		6
-
 # Do not lint the CDDL stuff. It is all externally maintained and
 # lint output is wasteful noise here.
 
diff --git a/gnu/usr.bin/dialog/Makefile b/gnu/usr.bin/dialog/Makefile
index bcca9b353303..71496f774830 100644
--- a/gnu/usr.bin/dialog/Makefile
+++ b/gnu/usr.bin/dialog/Makefile
@@ -7,6 +7,4 @@ LIBADD=	dialog ncursesw m
 CFLAGS+= -I${.CURDIR} -I${DIALOG}
 .PATH:	${DIALOG}
 
-WARNS?= 6
-
 .include <bsd.prog.mk>
diff --git a/lib/googletest/Makefile.inc b/lib/googletest/Makefile.inc
index 319ce6ec7ec6..36f7228c079b 100644
--- a/lib/googletest/Makefile.inc
+++ b/lib/googletest/Makefile.inc
@@ -10,5 +10,3 @@ CXXFLAGS+=	${GTESTS_FLAGS}
 
 # Silence warnings about usage of deprecated std::auto_ptr
 CXXWARNFLAGS+=	-Wno-deprecated-declarations
-
-WARNS?=		6
diff --git a/lib/libcam/tests/Makefile b/lib/libcam/tests/Makefile
index 178c30805f92..89e59ca9932e 100644
--- a/lib/libcam/tests/Makefile
+++ b/lib/libcam/tests/Makefile
@@ -5,6 +5,4 @@ ATF_TESTS_C+=	cam_test
 
 LIBADD+=	cam
 
-WARNS?=		6
-
 .include <bsd.test.mk>
diff --git a/lib/libcrypt/tests/Makefile b/lib/libcrypt/tests/Makefile
index 22b7fccccbba..15798b215d17 100644
--- a/lib/libcrypt/tests/Makefile
+++ b/lib/libcrypt/tests/Makefile
@@ -4,7 +4,6 @@ ATF_TESTS_C+= crypt_tests
 
 NETBSD_ATF_TESTS_C+= crypt_test
 
-WARNS?=		6
 CFLAGS+= -I${.CURDIR:H}
 LIBADD=	crypt
 
diff --git a/lib/libiconv_modules/Makefile.inc b/lib/libiconv_modules/Makefile.inc
index d42473637534..556997404f99 100644
--- a/lib/libiconv_modules/Makefile.inc
+++ b/lib/libiconv_modules/Makefile.inc
@@ -3,7 +3,6 @@
 .PATH: ${SRCTOP}/lib/libc/iconv
 
 SHLIB_MAJOR= 4
-WARNS?=	6
 CFLAGS+= -I${SRCTOP}/lib/libc/iconv
 
 CFLAGS+=	-Dbool=_Bool
diff --git a/lib/libkvm/Makefile b/lib/libkvm/Makefile
index d934690d4355..6afb8c4ad2e1 100644
--- a/lib/libkvm/Makefile
+++ b/lib/libkvm/Makefile
@@ -8,8 +8,6 @@ SHLIBDIR?= /lib
 SHLIB_MAJOR=	7
 CFLAGS+=-DNO__SCCSID -I${.CURDIR}
 
-WARNS?=	6
-
 SRCS=	kvm.c kvm_cptime.c kvm_getloadavg.c \
 	kvm_getswapinfo.c kvm_pcpu.c kvm_private.c kvm_proc.c kvm_vnet.c \
 	kvm_minidump_aarch64.c \
diff --git a/lib/libkvm/tests/Makefile b/lib/libkvm/tests/Makefile
index 24caf9108883..1f74aec83f02 100644
--- a/lib/libkvm/tests/Makefile
+++ b/lib/libkvm/tests/Makefile
@@ -13,8 +13,6 @@ CFLAGS.kvm_read_test+=		-I${.CURDIR:H}
 
 LIBADD+=	kvm
 
-WARNS?=		6
-
 BINDIR=		${TESTSDIR}
 
 .for t in kvm_geterr_test kvm_open_test kvm_open2_test kvm_read_test
diff --git a/lib/libpathconv/tests/Makefile b/lib/libpathconv/tests/Makefile
index f32db22c1db8..c7696c2d6c5d 100644
--- a/lib/libpathconv/tests/Makefile
+++ b/lib/libpathconv/tests/Makefile
@@ -3,7 +3,6 @@
 TAP_TESTS_C+=	abs2rel
 TAP_TESTS_C+=	rel2abs
 
-WARNS?=		6
 #LIBADD+=	pathconv
 #LDADD+= -L .. -lpathconv
 LDADD+= ../libpathconv.a
diff --git a/lib/libproc/tests/Makefile b/lib/libproc/tests/Makefile
index 8c7563a33ca6..93f50789c88c 100644
--- a/lib/libproc/tests/Makefile
+++ b/lib/libproc/tests/Makefile
@@ -6,7 +6,6 @@ PROGS=		target_prog
 SRCS_target_prog=	target_prog.c
 BINDIR_target_prog=	${TESTSDIR}
 
-WARNS?=		6
 LIBADD=	elf proc rtld_db util
 
 # Ensure that symbols aren't stripped from the test program, as they're needed
diff --git a/lib/libsbuf/tests/Makefile b/lib/libsbuf/tests/Makefile
index d3532f01b7b6..b563ebfe1728 100644
--- a/lib/libsbuf/tests/Makefile
+++ b/lib/libsbuf/tests/Makefile
@@ -6,6 +6,4 @@ ATF_TESTS_C+=	sbuf_string_test
 
 LIBADD+=	sbuf util
 
-WARNS?=		6
-
 .include <bsd.test.mk>
diff --git a/libexec/Makefile.inc b/libexec/Makefile.inc
index 7b6a65fc7172..5a94bbf52a4b 100644
--- a/libexec/Makefile.inc
+++ b/libexec/Makefile.inc
@@ -3,5 +3,4 @@
 
 BINDIR?=	/usr/libexec
 
-WARNS?=		6
 WFORMAT?=	1
diff --git a/libexec/getty/Makefile b/libexec/getty/Makefile
index ff4b91157511..a65d1d7da981 100644
--- a/libexec/getty/Makefile
+++ b/libexec/getty/Makefile
@@ -7,7 +7,6 @@ SRCS=	main.c init.c subr.c chat.c
 LIBADD=	util
 MAN=	gettytab.5 ttys.5 getty.8
 
-WARNS?=	6
 WFORMAT=0
 
 .include <bsd.prog.mk>
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index a51acf68068a..48fd4f6f01c0 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -42,7 +42,6 @@ LDFLAGS+=	-nostdlib -e .rtld_start
 .endif
 
 NO_WCAST_ALIGN=	yes
-WARNS?=		6
 INSTALLFLAGS=	-C -b
 PRECIOUSPROG=
 BINDIR=		/libexec
diff --git a/libexec/rtld-elf/tests/libpythagoras/Makefile b/libexec/rtld-elf/tests/libpythagoras/Makefile
index 7c9583960953..9ad4b883015c 100644
--- a/libexec/rtld-elf/tests/libpythagoras/Makefile
+++ b/libexec/rtld-elf/tests/libpythagoras/Makefile
@@ -10,7 +10,6 @@ SHLIBDIR=	${TESTSBASE}/libexec/rtld-elf
 
 SRCS=		pythagoras.c
 
-WARNS?=		6
 LIBADD=		m
 
 .include <bsd.lib.mk>
diff --git a/libexec/tftpd/tests/Makefile b/libexec/tftpd/tests/Makefile
index 9aa420cec1a5..fb5212e2ad6f 100644
--- a/libexec/tftpd/tests/Makefile
+++ b/libexec/tftpd/tests/Makefile
@@ -9,7 +9,6 @@ TEST_METADATA.functional+=	timeout=15
 .endif
 
 LIBADD=	util
-WARNS?=	6
 CSTD=	c11
 
 .include <bsd.test.mk>
diff --git a/sbin/decryptcore/Makefile b/sbin/decryptcore/Makefile
index 423bca9c454e..3a3a6a029f87 100644
--- a/sbin/decryptcore/Makefile
+++ b/sbin/decryptcore/Makefile
@@ -8,6 +8,4 @@ MAN=	decryptcore.8
 
 CFLAGS+=-I${SRCTOP}/lib/libpjdlog
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/sbin/ping/tests/Makefile b/sbin/ping/tests/Makefile
index 678641562d93..2d5082ac839b 100644
--- a/sbin/ping/tests/Makefile
+++ b/sbin/ping/tests/Makefile
@@ -1,7 +1,5 @@
 # $FreeBSD$
 
-WARNS?=	6
-
 ATF_TESTS_C+=	in_cksum_test
 SRCS.in_cksum_test= in_cksum_test.c ../utils.c
 
diff --git a/sbin/recoverdisk/Makefile b/sbin/recoverdisk/Makefile
index 41ef1f3e4912..2094ad29d54b 100644
--- a/sbin/recoverdisk/Makefile
+++ b/sbin/recoverdisk/Makefile
@@ -3,6 +3,8 @@
 PACKAGE=runtime
 PROG=	recoverdisk
 
+LDFLAGS += -lm
+
 .include <bsd.prog.mk>
 
 test:	${PROG}
diff --git a/sys/teken/demo/Makefile b/sys/teken/demo/Makefile
index 1ade690afe22..e39c5742bc96 100644
--- a/sys/teken/demo/Makefile
+++ b/sys/teken/demo/Makefile
@@ -4,6 +4,4 @@ PROG=	teken_demo
 LDADD=	-lncursesw -lteken -lutil
 MAN=
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/sys/teken/libteken/Makefile b/sys/teken/libteken/Makefile
index d1c9d3c9da70..20ec0aff0faa 100644
--- a/sys/teken/libteken/Makefile
+++ b/sys/teken/libteken/Makefile
@@ -4,7 +4,6 @@ LIB=	teken
 SHLIB_MAJOR= 0
 
 CFLAGS+=-I.
-WARNS?=	6
 
 SRCDIR=	${.CURDIR}/..
 .PATH: ${SRCDIR}
diff --git a/sys/teken/stress/Makefile b/sys/teken/stress/Makefile
index 7216da0bd60d..9a0257f02760 100644
--- a/sys/teken/stress/Makefile
+++ b/sys/teken/stress/Makefile
@@ -4,6 +4,4 @@ PROG=	teken_stress
 LDADD=	-lteken
 MAN=
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/tests/sys/Makefile.inc b/tests/sys/Makefile.inc
index 0b336d3f3ef3..2cba822015ae 100644
--- a/tests/sys/Makefile.inc
+++ b/tests/sys/Makefile.inc
@@ -1,5 +1,3 @@
 # $FreeBSD$
 
-WARNS?=		6
-
 .include "${SRCTOP}/tests/Makefile.inc0"
diff --git a/tests/sys/aio/Makefile b/tests/sys/aio/Makefile
index ef44036bf3d8..db9da144c43b 100644
--- a/tests/sys/aio/Makefile
+++ b/tests/sys/aio/Makefile
@@ -17,6 +17,4 @@ LIBADD.lio_test+=	rt
 
 CFLAGS+=	-I${.CURDIR:H:H}
 
-WARNS?=	6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/audit/Makefile b/tests/sys/audit/Makefile
index 6f70121da14f..01bdc6754ef7 100644
--- a/tests/sys/audit/Makefile
+++ b/tests/sys/audit/Makefile
@@ -51,8 +51,6 @@ TEST_METADATA+= required_user="root"
 TEST_METADATA+= is_exclusive="true"
 TEST_METADATA+=	required_files="/etc/rc.d/auditd"
 
-WARNS?=	6
-
 LDFLAGS+=	-lbsm -lutil
 
 .include <bsd.test.mk>
diff --git a/tests/sys/auditpipe/Makefile b/tests/sys/auditpipe/Makefile
index 9610599a22b6..ac7715d57f5d 100644
--- a/tests/sys/auditpipe/Makefile
+++ b/tests/sys/auditpipe/Makefile
@@ -5,6 +5,6 @@ TESTSDIR=	${TESTSBASE}/sys/auditpipe
 ATF_TESTS_C=	auditpipe_test
 
 TEST_METADATA+= required_user="root"
-WARNS?=	6
+TEST_METADATA+= required_files="/dev/auditpipe"
 
 .include <bsd.test.mk>
diff --git a/tests/sys/capsicum/Makefile b/tests/sys/capsicum/Makefile
index 6b0e53fa0865..9c69b6ac856b 100644
--- a/tests/sys/capsicum/Makefile
+++ b/tests/sys/capsicum/Makefile
@@ -7,6 +7,47 @@ ATF_TESTS_C+=	ioctls_test
 
 CFLAGS+=	-I${SRCTOP}/tests
 
-WARNS?=	6
+.if ${MK_GOOGLETEST} != no
+
+.PATH: ${SRCTOP}/contrib/capsicum-test
+
+GTESTS+=	capsicum-test
+
+SRCS.capsicum-test+=	\
+	capsicum-test-main.cc \
+	capsicum-test.cc \
+	capability-fd.cc \
+	fexecve.cc \
+	procdesc.cc \
+	capmode.cc \
+	fcntl.cc \
+	ioctl.cc \
+	openat.cc \
+	sysctl.cc \
+	select.cc \
+	mqueue.cc \
+	socket.cc \
+	sctp.cc \
+	capability-fd-pair.cc \
+	overhead.cc \
+	rename.cc
+
+LIBADD.capsicum-test+=	gtest pthread
+TEST_METADATA.capsicum-test=	required_user="unprivileged"
+
+.for p in mini-me mini-me.noexec mini-me.setuid
+PROGS+=		$p
+NO_SHARED.$p=
+SRCS.$p=	mini-me.c
+.endfor
+
+BINDIR=	${TESTSDIR}
+
+BINMODE.mini-me.noexec=	${NOBINMODE}
+BINMODE.mini-me.setuid=	4555
+
+WARNS.capsicum-test=	3
+
+.endif
 
 .include <bsd.test.mk>
diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile
index c3cf1f14e5bf..413998950ee2 100644
--- a/tests/sys/fs/fusefs/Makefile
+++ b/tests/sys/fs/fusefs/Makefile
@@ -85,6 +85,4 @@ LIBADD+=	pthread
 LIBADD+=	gmock gtest
 LIBADD+=	util
 
-WARNS?=	6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/kern/pipe/Makefile b/tests/sys/kern/pipe/Makefile
index 193676465aa3..9211700ada98 100644
--- a/tests/sys/kern/pipe/Makefile
+++ b/tests/sys/kern/pipe/Makefile
@@ -12,6 +12,4 @@ PLAIN_TESTS_C+= pipe_reverse2_test
 PLAIN_TESTS_C+= pipe_reverse_test
 PLAIN_TESTS_C+= pipe_wraparound_test
 
-WARNS?=		6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/mqueue/Makefile b/tests/sys/mqueue/Makefile
index 251c497e32e4..861694e0b353 100644
--- a/tests/sys/mqueue/Makefile
+++ b/tests/sys/mqueue/Makefile
@@ -16,6 +16,4 @@ PROGS+=		mqtest5
 
 LIBADD+=	rt
 
-WARNS?=		6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/net/Makefile b/tests/sys/net/Makefile
index cccabd9fc775..b14d6cbf8253 100644
--- a/tests/sys/net/Makefile
+++ b/tests/sys/net/Makefile
@@ -28,6 +28,6 @@ ${PACKAGE}FILESMODE_stp.py=		0555
 MAN=
 PROGS+=		randsleep
 
-WARNS?=		6
+CFLAGS+=        -I${.CURDIR:H:H}
 
 .include <bsd.test.mk>
diff --git a/tests/sys/netinet/Makefile b/tests/sys/netinet/Makefile
index f5b465557282..3bb99af8b88b 100644
--- a/tests/sys/netinet/Makefile
+++ b/tests/sys/netinet/Makefile
@@ -14,6 +14,4 @@ PROGS=	udp_dontroute tcp_user_cookie
 
 MAN=
 
-WARNS?=	6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/netmap/Makefile b/tests/sys/netmap/Makefile
index a1d61ddf8952..0228271dd668 100644
--- a/tests/sys/netmap/Makefile
+++ b/tests/sys/netmap/Makefile
@@ -11,6 +11,4 @@ PLAIN_TESTS_C+=	ctrl-api-test
 CFLAGS+=	-I${SRCTOP}/tests
 LIBADD+= 	pthread
 
-WARNS?=		6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile
index f9685b166afc..a0094091ecc6 100644
--- a/tests/sys/opencrypto/Makefile
+++ b/tests/sys/opencrypto/Makefile
@@ -21,6 +21,4 @@ PYMODULES=	cryptodev.py cryptodevh.py cryptotest.py
 
 ${PACKAGE}FILES+=	${PYMODULES}
 
-WARNS?=	6
-
 .include <bsd.test.mk>
diff --git a/tests/sys/pjdfstest/pjdfstest/Makefile b/tests/sys/pjdfstest/pjdfstest/Makefile
index e676cc036bad..53e29c3891fb 100644
--- a/tests/sys/pjdfstest/pjdfstest/Makefile
+++ b/tests/sys/pjdfstest/pjdfstest/Makefile
@@ -10,6 +10,4 @@ MAN=
 
 CFLAGS+=	-I${.CURDIR:H}
 
-WARNS?=		6
-
 .include <bsd.prog.mk>
diff --git a/tools/regression/aio/aiop/Makefile b/tools/regression/aio/aiop/Makefile
index 38d9db62266a..aac9a3b89e45 100644
--- a/tools/regression/aio/aiop/Makefile
+++ b/tools/regression/aio/aiop/Makefile
@@ -3,6 +3,4 @@
 PROG=	aiop
 MAN=
 
-WARNS=	6
-
 .include <bsd.prog.mk>
diff --git a/tools/regression/bpf/bpf_filter/Makefile b/tools/regression/bpf/bpf_filter/Makefile
index d0038f915239..e01a54e26cb3 100644
--- a/tools/regression/bpf/bpf_filter/Makefile
+++ b/tools/regression/bpf/bpf_filter/Makefile
@@ -46,7 +46,6 @@ SRCS+=		${SYSDIR}/net/bpf_jitter.c	\
 		${SYSDIR}/${MACHINE_ARCH}/${MACHINE_ARCH}/bpf_jit_machdep.c
 CFLAGS+=	-DBPF_JIT_COMPILER
 LIBS+=		-lutil
-WARNS?=		6
 .else
 SRCS+=		${SYSDIR}/net/bpf_filter.c
 WARNS?=		2
diff --git a/tools/regression/doat/Makefile b/tools/regression/doat/Makefile
index c04223bbfec8..c31ca53f4579 100644
--- a/tools/regression/doat/Makefile
+++ b/tools/regression/doat/Makefile
@@ -3,6 +3,5 @@
 PROG=	doat
 
 MAN=
-WARNS?=6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/geom_gpt/Makefile b/tools/regression/geom_gpt/Makefile
index 92d1f020c916..eb5a9659ff4f 100644
--- a/tools/regression/geom_gpt/Makefile
+++ b/tools/regression/geom_gpt/Makefile
@@ -5,6 +5,4 @@ MAN=
 
 LIBADD+=	geom
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/tools/regression/include/stdatomic/Makefile b/tools/regression/include/stdatomic/Makefile
index ae9982ac1418..2bc346a7d6fc 100644
--- a/tools/regression/include/stdatomic/Makefile
+++ b/tools/regression/include/stdatomic/Makefile
@@ -1,7 +1,6 @@
 # $FreeBSD$
 
 PROG=	logic
-WARNS=6
 MAN=
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/netinet/ipbroadcast/Makefile b/tools/regression/netinet/ipbroadcast/Makefile
index a1b497ae145c..c1e5bba93dcf 100644
--- a/tools/regression/netinet/ipbroadcast/Makefile
+++ b/tools/regression/netinet/ipbroadcast/Makefile
@@ -5,6 +5,4 @@
 PROG=	ipbroadcast
 MAN=
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/tools/regression/rpcsec_gss/Makefile b/tools/regression/rpcsec_gss/Makefile
index bea9d9c10e21..6f9debb7c2c3 100644
--- a/tools/regression/rpcsec_gss/Makefile
+++ b/tools/regression/rpcsec_gss/Makefile
@@ -2,7 +2,6 @@
 
 PROG=	rpctest
 MAN=
-WARNS?=	6
 LIBADD=	rpcsec_gss
 DEBUG_FLAGS= -g -O0
 
diff --git a/tools/regression/sockets/accept_fd_leak/Makefile b/tools/regression/sockets/accept_fd_leak/Makefile
index e9bfba606c10..d3b3f42ce2a8 100644
--- a/tools/regression/sockets/accept_fd_leak/Makefile
+++ b/tools/regression/sockets/accept_fd_leak/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	accept_fd_leak
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/accf_data_attach/Makefile b/tools/regression/sockets/accf_data_attach/Makefile
index 4d337282eade..e7942ced5d02 100644
--- a/tools/regression/sockets/accf_data_attach/Makefile
+++ b/tools/regression/sockets/accf_data_attach/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	accf_data_attach
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/fstat/Makefile b/tools/regression/sockets/fstat/Makefile
index a583166d10c9..d5cb72419969 100644
--- a/tools/regression/sockets/fstat/Makefile
+++ b/tools/regression/sockets/fstat/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	fstat
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/kqueue/Makefile b/tools/regression/sockets/kqueue/Makefile
index 6771d25acf66..e37eadfbb203 100644
--- a/tools/regression/sockets/kqueue/Makefile
+++ b/tools/regression/sockets/kqueue/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	kqueue
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/listen_backlog/Makefile b/tools/regression/sockets/listen_backlog/Makefile
index e2eb1350710a..091d7a420c76 100644
--- a/tools/regression/sockets/listen_backlog/Makefile
+++ b/tools/regression/sockets/listen_backlog/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	listen_backlog
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/listen_kqueue/Makefile b/tools/regression/sockets/listen_kqueue/Makefile
index d49a597fc8f5..a506f262d06a 100644
--- a/tools/regression/sockets/listen_kqueue/Makefile
+++ b/tools/regression/sockets/listen_kqueue/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	listen_kqueue
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/listenclose/Makefile b/tools/regression/sockets/listenclose/Makefile
index 8f4dc4e922d4..ee147dad8cef 100644
--- a/tools/regression/sockets/listenclose/Makefile
+++ b/tools/regression/sockets/listenclose/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	listenclose
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/pr_atomic/Makefile b/tools/regression/sockets/pr_atomic/Makefile
index 1dc85ffbeff8..a52433c6ef26 100644
--- a/tools/regression/sockets/pr_atomic/Makefile
+++ b/tools/regression/sockets/pr_atomic/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	pr_atomic
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/reconnect/Makefile b/tools/regression/sockets/reconnect/Makefile
index d8fa5e09b502..285d075bca4b 100644
--- a/tools/regression/sockets/reconnect/Makefile
+++ b/tools/regression/sockets/reconnect/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	reconnect
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/rtsocket/Makefile b/tools/regression/sockets/rtsocket/Makefile
index f68b6c3a2e2c..fcb2e40acca1 100644
--- a/tools/regression/sockets/rtsocket/Makefile
+++ b/tools/regression/sockets/rtsocket/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	rtsocket
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/sblock/Makefile b/tools/regression/sockets/sblock/Makefile
index aa2f890bc447..1992a0a652ac 100644
--- a/tools/regression/sockets/sblock/Makefile
+++ b/tools/regression/sockets/sblock/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	sblock
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/sendfile/Makefile b/tools/regression/sockets/sendfile/Makefile
index 6e9c1ab70164..f1ba7a1cf596 100644
--- a/tools/regression/sockets/sendfile/Makefile
+++ b/tools/regression/sockets/sendfile/Makefile
@@ -4,7 +4,6 @@
 
 PROG=	sendfile
 MAN=
-WARNS?=	6
 LIBADD=	md
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/shutdown/Makefile b/tools/regression/sockets/shutdown/Makefile
index 63045f5556ff..c36398c5af24 100644
--- a/tools/regression/sockets/shutdown/Makefile
+++ b/tools/regression/sockets/shutdown/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	shutdown
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/sigpipe/Makefile b/tools/regression/sockets/sigpipe/Makefile
index 51167011edb6..bd7720fbcbed 100644
--- a/tools/regression/sockets/sigpipe/Makefile
+++ b/tools/regression/sockets/sigpipe/Makefile
@@ -4,6 +4,5 @@
 
 PROG=	sigpipe
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/so_setfib/Makefile b/tools/regression/sockets/so_setfib/Makefile
index 90111fb86bd5..eadb3efb1c36 100644
--- a/tools/regression/sockets/so_setfib/Makefile
+++ b/tools/regression/sockets/so_setfib/Makefile
@@ -4,7 +4,6 @@
 
 PROG=	so_setfib
 MAN=
-WARNS?=	6
 
 .if ${MK_INET} != "no"
 CFLAGS+=	-DINET
diff --git a/tools/regression/sockets/udp_pingpong/Makefile b/tools/regression/sockets/udp_pingpong/Makefile
index 2ec5b209ce2c..61e92ed73ce8 100644
--- a/tools/regression/sockets/udp_pingpong/Makefile
+++ b/tools/regression/sockets/udp_pingpong/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	udp_pingpong
 MAN=
-WARNS?= 6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_bindconnect/Makefile b/tools/regression/sockets/unix_bindconnect/Makefile
index 52cc8442be09..4bb4fc011ba4 100644
--- a/tools/regression/sockets/unix_bindconnect/Makefile
+++ b/tools/regression/sockets/unix_bindconnect/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_bindconnect
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_close_race/Makefile b/tools/regression/sockets/unix_close_race/Makefile
index 370adc469896..690929edc2bc 100644
--- a/tools/regression/sockets/unix_close_race/Makefile
+++ b/tools/regression/sockets/unix_close_race/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_close_race
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_gc/Makefile b/tools/regression/sockets/unix_gc/Makefile
index 184660965069..09ba07ae65ee 100644
--- a/tools/regression/sockets/unix_gc/Makefile
+++ b/tools/regression/sockets/unix_gc/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_gc
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_sendtorace/Makefile b/tools/regression/sockets/unix_sendtorace/Makefile
index 75e7b9f0b606..7d26fc8b1383 100644
--- a/tools/regression/sockets/unix_sendtorace/Makefile
+++ b/tools/regression/sockets/unix_sendtorace/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_sendtorace
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_socket/Makefile b/tools/regression/sockets/unix_socket/Makefile
index bb6045637ed1..7ebc03fc22f3 100644
--- a/tools/regression/sockets/unix_socket/Makefile
+++ b/tools/regression/sockets/unix_socket/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_socket
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/unix_sorflush/Makefile b/tools/regression/sockets/unix_sorflush/Makefile
index db0aa6ade00d..879dcc8ef533 100644
--- a/tools/regression/sockets/unix_sorflush/Makefile
+++ b/tools/regression/sockets/unix_sorflush/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	unix_sorflush
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/regression/sockets/zerosend/Makefile b/tools/regression/sockets/zerosend/Makefile
index 18f7dd3e649a..9706b25ea899 100644
--- a/tools/regression/sockets/zerosend/Makefile
+++ b/tools/regression/sockets/zerosend/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	zerosend
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/test/auxinfo/Makefile b/tools/test/auxinfo/Makefile
index 0e6d80992ad8..f40c81d87652 100644
--- a/tools/test/auxinfo/Makefile
+++ b/tools/test/auxinfo/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	auxinfo
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/test/iconv/posix/Makefile b/tools/test/iconv/posix/Makefile
index 891142412df8..aafaadebafe7 100644
--- a/tools/test/iconv/posix/Makefile
+++ b/tools/test/iconv/posix/Makefile
@@ -3,6 +3,4 @@
 PROG=	posix
 MAN=
 
-WARNS?=	6
-
 .include <bsd.prog.mk>
diff --git a/tools/test/malloc/Makefile b/tools/test/malloc/Makefile
index 455dec39920b..ac3fdd89486b 100644
--- a/tools/test/malloc/Makefile
+++ b/tools/test/malloc/Makefile
@@ -4,7 +4,6 @@ SRCS=	main.c
 .PATH:	${.CURDIR}/../../../lib/libc/stdlib
 
 MAN=
-WARNS?=6
 
 test:	malloc
 	@echo
diff --git a/tools/test/net/Makefile b/tools/test/net/Makefile
index e4c525920d8c..4fe5fb155cd1 100644
--- a/tools/test/net/Makefile
+++ b/tools/test/net/Makefile
@@ -2,7 +2,6 @@
 
 PROGS=	listen connect
 MAN=
-WARNS?=	6
 
 test:	${PROGS}
 
diff --git a/tools/test/netfibs/Makefile b/tools/test/netfibs/Makefile
index 689d613616e1..7262a21356c8 100644
--- a/tools/test/netfibs/Makefile
+++ b/tools/test/netfibs/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	reflect
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/test/ptrace/Makefile b/tools/test/ptrace/Makefile
index a11b0a16a846..46e0aee6b53f 100644
--- a/tools/test/ptrace/Makefile
+++ b/tools/test/ptrace/Makefile
@@ -2,6 +2,5 @@
 
 PROG=	scescx
 MAN=
-WARNS?=	6
 
 .include <bsd.prog.mk>
diff --git a/tools/tools/aac/Makefile b/tools/tools/aac/Makefile
index 03c5dcda9ed9..9f2f4a7249cd 100644
--- a/tools/tools/aac/Makefile
+++ b/tools/tools/aac/Makefile
@@ -2,7 +2,6 @@
 
 PROG=	aac_checkq
 MAN=
-WARNS?=6
 BINDIR?=/usr/local/bin
 
 .include <bsd.prog.mk>
diff --git a/tools/tools/cfi/Makefile b/tools/tools/cfi/Makefile
index 5a49f2d38438..9f4dd10a2828 100644
--- a/tools/tools/cfi/Makefile
*** 284 LINES SKIPPED ***



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