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.
This commit is contained in:
Kyle Evans 2020-10-01 01:10:51 +00:00
parent 9f669985b2
commit 7cc42f6d25
99 changed files with 2 additions and 137 deletions

View File

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

View File

@ -7,6 +7,4 @@ LIBADD= dialog ncursesw m
CFLAGS+= -I${.CURDIR} -I${DIALOG}
.PATH: ${DIALOG}
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -10,5 +10,3 @@ CXXFLAGS+= ${GTESTS_FLAGS}
# Silence warnings about usage of deprecated std::auto_ptr
CXXWARNFLAGS+= -Wno-deprecated-declarations
WARNS?= 6

View File

@ -5,6 +5,4 @@ ATF_TESTS_C+= cam_test
LIBADD+= cam
WARNS?= 6
.include <bsd.test.mk>

View File

@ -4,7 +4,6 @@ ATF_TESTS_C+= crypt_tests
NETBSD_ATF_TESTS_C+= crypt_test
WARNS?= 6
CFLAGS+= -I${.CURDIR:H}
LIBADD= crypt

View File

@ -3,7 +3,6 @@
.PATH: ${SRCTOP}/lib/libc/iconv
SHLIB_MAJOR= 4
WARNS?= 6
CFLAGS+= -I${SRCTOP}/lib/libc/iconv
CFLAGS+= -Dbool=_Bool

View File

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

View File

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

View File

@ -3,7 +3,6 @@
TAP_TESTS_C+= abs2rel
TAP_TESTS_C+= rel2abs
WARNS?= 6
#LIBADD+= pathconv
#LDADD+= -L .. -lpathconv
LDADD+= ../libpathconv.a

View File

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

View File

@ -6,6 +6,4 @@ ATF_TESTS_C+= sbuf_string_test
LIBADD+= sbuf util
WARNS?= 6
.include <bsd.test.mk>

View File

@ -3,5 +3,4 @@
BINDIR?= /usr/libexec
WARNS?= 6
WFORMAT?= 1

View File

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

View File

@ -40,7 +40,6 @@ RTLD_ARCH= ${MACHINE_CPUARCH}
CFLAGS+= -I${RTLD_ELF_DIR}/${RTLD_ARCH} -I${RTLD_ELF_DIR}
NO_WCAST_ALIGN= yes
WARNS?= 6
INSTALLFLAGS= -C -b
PRECIOUSPROG=
BINDIR= /libexec

View File

@ -10,7 +10,6 @@ SHLIBDIR= ${TESTSBASE}/libexec/rtld-elf
SRCS= pythagoras.c
WARNS?= 6
LIBADD= m
.include <bsd.lib.mk>

View File

@ -6,7 +6,6 @@ ATF_TESTS_C= functional
TEST_METADATA.functional+= timeout=15
LIBADD= util
WARNS?= 6
CSTD= c11
.include <bsd.test.mk>

View File

@ -8,6 +8,4 @@ MAN= decryptcore.8
CFLAGS+=-I${SRCTOP}/lib/libpjdlog
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= pfilctl
SRCS= pfilctl.c
WARNS?= 6
MAN= pfilctl.8

View File

@ -1,7 +1,5 @@
# $FreeBSD$
WARNS?= 6
ATF_TESTS_C+= in_cksum_test
SRCS.in_cksum_test= in_cksum_test.c ../utils.c

View File

@ -5,8 +5,6 @@ PROG= recoverdisk
LDFLAGS += -lm
WARNS?= 6
.include <bsd.prog.mk>
test: ${PROG}

View File

@ -4,6 +4,4 @@ PROG= teken_demo
LDADD= -lncursesw -lteken -lutil
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@ LIB= teken
SHLIB_MAJOR= 0
CFLAGS+=-I.
WARNS?= 6
SRCDIR= ${.CURDIR}/..
.PATH: ${SRCDIR}

View File

@ -4,6 +4,4 @@ PROG= teken_stress
LDADD= -lteken
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,5 +1,3 @@
# $FreeBSD$
WARNS?= 6
.include "${SRCTOP}/tests/Makefile.inc0"

View File

@ -17,6 +17,4 @@ LIBADD.lio_test+= rt
CFLAGS+= -I${.CURDIR:H:H}
WARNS?= 6
.include <bsd.test.mk>

View File

@ -51,8 +51,6 @@ TEST_METADATA+= required_user="root"
TEST_METADATA+= is_exclusive="true"
TEST_METADATA+= required_files="/etc/rc.d/auditd /dev/auditpipe"
WARNS?= 6
LDFLAGS+= -lbsm -lutil
CFLAGS.process-control.c+= -I${SRCTOP}/tests

View File

@ -6,6 +6,5 @@ ATF_TESTS_C= auditpipe_test
TEST_METADATA+= required_user="root"
TEST_METADATA+= required_files="/dev/auditpipe"
WARNS?= 6
.include <bsd.test.mk>

View File

@ -52,6 +52,4 @@ WARNS.capsicum-test= 3
.endif
WARNS?= 6
.include <bsd.test.mk>

View File

@ -6,7 +6,6 @@ SDEVRANDOM= ${SRCTOP}/sys/dev/random
.PATH: ${SDEVRANDOM}
TESTSDIR= ${TESTSBASE}/sys/devrandom
WARNS?= 6
CFLAGS+= -I${SRCTOP}/sys

View File

@ -82,6 +82,4 @@ LIBADD+= pthread
LIBADD+= gmock gtest
LIBADD+= util
WARNS?= 6
.include <bsd.test.mk>

View File

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

View File

@ -16,6 +16,4 @@ PROGS+= mqtest5
LIBADD+= rt
WARNS?= 6
.include <bsd.test.mk>

View File

@ -25,6 +25,4 @@ PROGS+= randsleep
CFLAGS+= -I${.CURDIR:H:H}
WARNS?= 6
.include <bsd.test.mk>

View File

@ -20,6 +20,4 @@ ${PACKAGE}FILESMODE_redirect.py=0555
MAN=
WARNS?= 6
.include <bsd.test.mk>

View File

@ -11,6 +11,4 @@ PLAIN_TESTS_C+= ctrl-api-test
CFLAGS+= -I${SRCTOP}/tests
LIBADD+= pthread
WARNS?= 6
.include <bsd.test.mk>

View File

@ -21,6 +21,4 @@ PYMODULES= cryptodev.py cryptodevh.py cryptotest.py
${PACKAGE}FILES+= ${PYMODULES}
WARNS?= 6
.include <bsd.test.mk>

View File

@ -10,6 +10,4 @@ MAN=
CFLAGS+= -I${.CURDIR:H}
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= aiop
MAN=
WARNS= 6
.include <bsd.prog.mk>

View File

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

View File

@ -3,6 +3,5 @@
PROG= doat
MAN=
WARNS?=6
.include <bsd.prog.mk>

View File

@ -5,6 +5,4 @@ MAN=
LIBADD+= geom
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +1,6 @@
# $FreeBSD$
PROG= logic
WARNS=6
MAN=
.include <bsd.prog.mk>

View File

@ -5,6 +5,4 @@
PROG= ipbroadcast
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= rpctest
MAN=
WARNS?= 6
LIBADD= rpcsec_gss
DEBUG_FLAGS= -g -O0

View File

@ -4,6 +4,5 @@
PROG= accept_fd_leak
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= accf_data_attach
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= fstat
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= kqueue
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= listen_backlog
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= listen_kqueue
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= listenclose
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= pr_atomic
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= reconnect
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= rtsocket
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= sblock
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@
PROG= sendfile
MAN=
WARNS?= 6
LIBADD= md
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= shutdown
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@
PROG= sigpipe
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@
PROG= so_setfib
MAN=
WARNS?= 6
.if ${MK_INET} != "no"
CFLAGS+= -DINET

View File

@ -2,6 +2,5 @@
PROG= udp_pingpong
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_bindconnect
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_close_race
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_gc
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_sendtorace
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_socket
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= unix_sorflush
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= zerosend
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= auxinfo
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= posix
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@ SRCS= main.c
.PATH: ${.CURDIR}/../../../lib/libc/stdlib
MAN=
WARNS?=6
test: malloc
@echo

View File

@ -2,7 +2,6 @@
PROGS= listen connect
MAN=
WARNS?= 6
test: ${PROGS}

View File

@ -2,6 +2,5 @@
PROG= reflect
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= scescx
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= aac_checkq
MAN=
WARNS?=6
BINDIR?=/usr/local/bin
.include <bsd.prog.mk>

View File

@ -3,6 +3,5 @@
PROG= cfi
BINDIR= /usr/local/bin
MAN=
WARNS?=6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= find-sb
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= fixwhite
BINDIR= /usr/bin
WARNS= 6
.include <bsd.prog.mk>

View File

@ -21,6 +21,4 @@ LDFLAGS+= -L${LOCALBASE}/lib
LDADD+= -lsmi
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= ifpifa
MAN=
WARNS?=6
BINDIR?=/usr/local/bin
LIBADD=kvm

View File

@ -8,6 +8,4 @@ CFLAGS+= -I${SRCTOP}/sys/dev/ioat
LIBADD= util
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,6 +2,5 @@
PROG= iwistats
MAN=
WARNS?=6
.include <bsd.prog.mk>

View File

@ -7,7 +7,6 @@ SRCS= ncpus.c acpi.c
SRCS+= biosmptable.c
.endif
BINDIR= /usr/local/bin
WARNS?= 6
LIBADD= devinfo

View File

@ -5,6 +5,4 @@
PROG= pciroms
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -8,6 +8,4 @@ MAN=
#LIBADD= pthread
WARNS= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= tscdrift
MAN=
WARNS?= 6
LIBADD= pthread m

View File

@ -1,6 +1,6 @@
# $FreeBSD$
PROG= mkkfont
MAN1=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -8,6 +8,4 @@ CFLAGS+= -I${.CURDIR}
LIBADD= dpv dialog
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -6,6 +6,4 @@ PROGS+= arch_type
BINDIR= ${TESTSDIR}
WARNS?= 6
.include <bsd.test.mk>

View File

@ -34,8 +34,6 @@ BINDIR?=/usr/bin
LIBADD= util
WARNS?= 6
HAS_TESTS=
SUBDIR.${MK_TESTS}+= tests

View File

@ -2,6 +2,5 @@
PROG= posixshmcontrol
LIBADD= util
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,6 +1,5 @@
# $FreeBSD$
PROG= proccontrol
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,6 +1,5 @@
# $FreeBSD$
PROG= protect
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@ BINDIR= ${LIBEXECDIR}/bsdinstall
PROG= distextract
LIBADD= archive dpv figpar ncursesw dialog m
WARNS?= 6
MAN=
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@ BINDIR= ${LIBEXECDIR}/bsdinstall
PROG= distfetch
LIBADD= fetch ncursesw dialog m
WARNS?= 6
MAN=
.include <bsd.prog.mk>

View File

@ -5,5 +5,3 @@ BINDIR?= /usr/bin
PACKAGE= bsnmp
CFLAGS+= -I. -I${.CURDIR}
WARNS?= 6

View File

@ -20,7 +20,6 @@ LIBADD= bsdxml md sbuf util ucl m nv
YFLAGS+= -v
CLEANFILES= y.tab.c y.tab.h y.output
WARNS?= 6
NO_WMISSING_VARIABLE_DECLARATIONS=
.if ${MK_ISCSI} != "no"

View File

@ -6,8 +6,6 @@ LIBADD= nv ucl m
CFLAGS+=-I${SRCTOP}/contrib/libucl/include
WARNS?=6
MAN= \
iovctl.8 \
iovctl.conf.5 \

View File

@ -2,6 +2,5 @@
PROG= mlx5tool
MAN= mlx5tool.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -5,7 +5,6 @@ PACKAGE= tests
BINDIR= ${TESTSDIR}
PROGS+= crypt
WARNS?= 6
LIBADD+= crypt
ATF_TESTS_SH= pw_etcdir_test \