From owner-dev-commits-src-branches@freebsd.org Sun Aug 29 13:32:37 2021 Return-Path: Delivered-To: dev-commits-src-branches@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 75FFA65EBA6; Sun, 29 Aug 2021 13:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GyDsK2txgz3q5k; Sun, 29 Aug 2021 13:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3F80734C8; Sun, 29 Aug 2021 13:32:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 17TDWbTx072544; Sun, 29 Aug 2021 13:32:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 17TDWbNo072542; Sun, 29 Aug 2021 13:32:37 GMT (envelope-from git) Date: Sun, 29 Aug 2021 13:32:37 GMT Message-Id: <202108291332.17TDWbNo072542@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: e92630fc6829 - stable/12 - Revert "Do a sweep and remove most WARNS=6 settings" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: e92630fc682954a7b4f724f4a8174d196d7d9cc5 Auto-Submitted: auto-generated X-BeenThere: dev-commits-src-branches@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commits to the stable branches of the FreeBSD src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Aug 2021 13:32:37 -0000 The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e92630fc682954a7b4f724f4a8174d196d7d9cc5 commit e92630fc682954a7b4f724f4a8174d196d7d9cc5 Author: Dimitry Andric AuthorDate: 2021-08-29 13:28:30 +0000 Commit: Dimitry Andric CommitDate: 2021-08-29 13:28:30 +0000 Revert "Do a sweep and remove most WARNS=6 settings" This reverts commit befc47822966, as it caused various CI build errors, and we never merged the prerequisite commit fe815331bb40 ("build: provide a default WARNS for all in-tree builds"). The latter is rather intrusive, so I will avoid it. Direct commit to stable/12 since the CI bots are broken. --- 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, 131 insertions(+), 48 deletions(-) diff --git a/cddl/Makefile.inc b/cddl/Makefile.inc index 687068d599e8..94a42492a4f0 100644 --- a/cddl/Makefile.inc +++ b/cddl/Makefile.inc @@ -7,6 +7,8 @@ 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 71496f774830..bcca9b353303 100644 --- a/gnu/usr.bin/dialog/Makefile +++ b/gnu/usr.bin/dialog/Makefile @@ -7,4 +7,6 @@ LIBADD= dialog ncursesw m CFLAGS+= -I${.CURDIR} -I${DIALOG} .PATH: ${DIALOG} +WARNS?= 6 + .include diff --git a/lib/googletest/Makefile.inc b/lib/googletest/Makefile.inc index b77322df4ee2..9e1d5553a149 100644 --- a/lib/googletest/Makefile.inc +++ b/lib/googletest/Makefile.inc @@ -13,3 +13,5 @@ CXXWARNFLAGS+= -Wno-deprecated-declarations # Silence warnings about usage of deprecated implicit copy constructors CXXWARNFLAGS+= -Wno-deprecated-copy + +WARNS?= 6 diff --git a/lib/libcam/tests/Makefile b/lib/libcam/tests/Makefile index 89e59ca9932e..178c30805f92 100644 --- a/lib/libcam/tests/Makefile +++ b/lib/libcam/tests/Makefile @@ -5,4 +5,6 @@ ATF_TESTS_C+= cam_test LIBADD+= cam +WARNS?= 6 + .include diff --git a/lib/libcrypt/tests/Makefile b/lib/libcrypt/tests/Makefile index 15798b215d17..22b7fccccbba 100644 --- a/lib/libcrypt/tests/Makefile +++ b/lib/libcrypt/tests/Makefile @@ -4,6 +4,7 @@ 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 556997404f99..d42473637534 100644 --- a/lib/libiconv_modules/Makefile.inc +++ b/lib/libiconv_modules/Makefile.inc @@ -3,6 +3,7 @@ .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 6afb8c4ad2e1..d934690d4355 100644 --- a/lib/libkvm/Makefile +++ b/lib/libkvm/Makefile @@ -8,6 +8,8 @@ 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 1f74aec83f02..24caf9108883 100644 --- a/lib/libkvm/tests/Makefile +++ b/lib/libkvm/tests/Makefile @@ -13,6 +13,8 @@ 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 c7696c2d6c5d..f32db22c1db8 100644 --- a/lib/libpathconv/tests/Makefile +++ b/lib/libpathconv/tests/Makefile @@ -3,6 +3,7 @@ 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 93f50789c88c..8c7563a33ca6 100644 --- a/lib/libproc/tests/Makefile +++ b/lib/libproc/tests/Makefile @@ -6,6 +6,7 @@ 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 b563ebfe1728..d3532f01b7b6 100644 --- a/lib/libsbuf/tests/Makefile +++ b/lib/libsbuf/tests/Makefile @@ -6,4 +6,6 @@ ATF_TESTS_C+= sbuf_string_test LIBADD+= sbuf util +WARNS?= 6 + .include diff --git a/libexec/Makefile.inc b/libexec/Makefile.inc index 5a94bbf52a4b..7b6a65fc7172 100644 --- a/libexec/Makefile.inc +++ b/libexec/Makefile.inc @@ -3,4 +3,5 @@ BINDIR?= /usr/libexec +WARNS?= 6 WFORMAT?= 1 diff --git a/libexec/getty/Makefile b/libexec/getty/Makefile index a65d1d7da981..ff4b91157511 100644 --- a/libexec/getty/Makefile +++ b/libexec/getty/Makefile @@ -7,6 +7,7 @@ SRCS= main.c init.c subr.c chat.c LIBADD= util MAN= gettytab.5 ttys.5 getty.8 +WARNS?= 6 WFORMAT=0 .include diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 48fd4f6f01c0..a51acf68068a 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -42,6 +42,7 @@ 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 9ad4b883015c..7c9583960953 100644 --- a/libexec/rtld-elf/tests/libpythagoras/Makefile +++ b/libexec/rtld-elf/tests/libpythagoras/Makefile @@ -10,6 +10,7 @@ SHLIBDIR= ${TESTSBASE}/libexec/rtld-elf SRCS= pythagoras.c +WARNS?= 6 LIBADD= m .include diff --git a/libexec/tftpd/tests/Makefile b/libexec/tftpd/tests/Makefile index fb5212e2ad6f..9aa420cec1a5 100644 --- a/libexec/tftpd/tests/Makefile +++ b/libexec/tftpd/tests/Makefile @@ -9,6 +9,7 @@ TEST_METADATA.functional+= timeout=15 .endif LIBADD= util +WARNS?= 6 CSTD= c11 .include diff --git a/sbin/decryptcore/Makefile b/sbin/decryptcore/Makefile index 3a3a6a029f87..423bca9c454e 100644 --- a/sbin/decryptcore/Makefile +++ b/sbin/decryptcore/Makefile @@ -8,4 +8,6 @@ MAN= decryptcore.8 CFLAGS+=-I${SRCTOP}/lib/libpjdlog +WARNS?= 6 + .include diff --git a/sbin/ping/tests/Makefile b/sbin/ping/tests/Makefile index 2d5082ac839b..678641562d93 100644 --- a/sbin/ping/tests/Makefile +++ b/sbin/ping/tests/Makefile @@ -1,5 +1,7 @@ # $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 2094ad29d54b..41ef1f3e4912 100644 --- a/sbin/recoverdisk/Makefile +++ b/sbin/recoverdisk/Makefile @@ -3,8 +3,6 @@ PACKAGE=runtime PROG= recoverdisk -LDFLAGS += -lm - .include test: ${PROG} diff --git a/sys/teken/demo/Makefile b/sys/teken/demo/Makefile index e39c5742bc96..1ade690afe22 100644 --- a/sys/teken/demo/Makefile +++ b/sys/teken/demo/Makefile @@ -4,4 +4,6 @@ PROG= teken_demo LDADD= -lncursesw -lteken -lutil MAN= +WARNS?= 6 + .include diff --git a/sys/teken/libteken/Makefile b/sys/teken/libteken/Makefile index 20ec0aff0faa..d1c9d3c9da70 100644 --- a/sys/teken/libteken/Makefile +++ b/sys/teken/libteken/Makefile @@ -4,6 +4,7 @@ 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 9a0257f02760..7216da0bd60d 100644 --- a/sys/teken/stress/Makefile +++ b/sys/teken/stress/Makefile @@ -4,4 +4,6 @@ PROG= teken_stress LDADD= -lteken MAN= +WARNS?= 6 + .include diff --git a/tests/sys/Makefile.inc b/tests/sys/Makefile.inc index 2cba822015ae..0b336d3f3ef3 100644 --- a/tests/sys/Makefile.inc +++ b/tests/sys/Makefile.inc @@ -1,3 +1,5 @@ # $FreeBSD$ +WARNS?= 6 + .include "${SRCTOP}/tests/Makefile.inc0" diff --git a/tests/sys/aio/Makefile b/tests/sys/aio/Makefile index db9da144c43b..ef44036bf3d8 100644 --- a/tests/sys/aio/Makefile +++ b/tests/sys/aio/Makefile @@ -17,4 +17,6 @@ LIBADD.lio_test+= rt CFLAGS+= -I${.CURDIR:H:H} +WARNS?= 6 + .include diff --git a/tests/sys/audit/Makefile b/tests/sys/audit/Makefile index 01bdc6754ef7..6f70121da14f 100644 --- a/tests/sys/audit/Makefile +++ b/tests/sys/audit/Makefile @@ -51,6 +51,8 @@ TEST_METADATA+= required_user="root" TEST_METADATA+= is_exclusive="true" TEST_METADATA+= required_files="/etc/rc.d/auditd" +WARNS?= 6 + LDFLAGS+= -lbsm -lutil .include diff --git a/tests/sys/auditpipe/Makefile b/tests/sys/auditpipe/Makefile index ac7715d57f5d..9610599a22b6 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" -TEST_METADATA+= required_files="/dev/auditpipe" +WARNS?= 6 .include diff --git a/tests/sys/capsicum/Makefile b/tests/sys/capsicum/Makefile index 9c69b6ac856b..6b0e53fa0865 100644 --- a/tests/sys/capsicum/Makefile +++ b/tests/sys/capsicum/Makefile @@ -7,47 +7,6 @@ ATF_TESTS_C+= ioctls_test CFLAGS+= -I${SRCTOP}/tests -.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 +WARNS?= 6 .include diff --git a/tests/sys/fs/fusefs/Makefile b/tests/sys/fs/fusefs/Makefile index 413998950ee2..c3cf1f14e5bf 100644 --- a/tests/sys/fs/fusefs/Makefile +++ b/tests/sys/fs/fusefs/Makefile @@ -85,4 +85,6 @@ LIBADD+= pthread LIBADD+= gmock gtest LIBADD+= util +WARNS?= 6 + .include diff --git a/tests/sys/kern/pipe/Makefile b/tests/sys/kern/pipe/Makefile index 9211700ada98..193676465aa3 100644 --- a/tests/sys/kern/pipe/Makefile +++ b/tests/sys/kern/pipe/Makefile @@ -12,4 +12,6 @@ PLAIN_TESTS_C+= pipe_reverse2_test PLAIN_TESTS_C+= pipe_reverse_test PLAIN_TESTS_C+= pipe_wraparound_test +WARNS?= 6 + .include diff --git a/tests/sys/mqueue/Makefile b/tests/sys/mqueue/Makefile index 861694e0b353..251c497e32e4 100644 --- a/tests/sys/mqueue/Makefile +++ b/tests/sys/mqueue/Makefile @@ -16,4 +16,6 @@ PROGS+= mqtest5 LIBADD+= rt +WARNS?= 6 + .include diff --git a/tests/sys/net/Makefile b/tests/sys/net/Makefile index b14d6cbf8253..cccabd9fc775 100644 --- a/tests/sys/net/Makefile +++ b/tests/sys/net/Makefile @@ -28,6 +28,6 @@ ${PACKAGE}FILESMODE_stp.py= 0555 MAN= PROGS+= randsleep -CFLAGS+= -I${.CURDIR:H:H} +WARNS?= 6 .include diff --git a/tests/sys/netinet/Makefile b/tests/sys/netinet/Makefile index 3bb99af8b88b..f5b465557282 100644 --- a/tests/sys/netinet/Makefile +++ b/tests/sys/netinet/Makefile @@ -14,4 +14,6 @@ PROGS= udp_dontroute tcp_user_cookie MAN= +WARNS?= 6 + .include diff --git a/tests/sys/netmap/Makefile b/tests/sys/netmap/Makefile index 0228271dd668..a1d61ddf8952 100644 --- a/tests/sys/netmap/Makefile +++ b/tests/sys/netmap/Makefile @@ -11,4 +11,6 @@ PLAIN_TESTS_C+= ctrl-api-test CFLAGS+= -I${SRCTOP}/tests LIBADD+= pthread +WARNS?= 6 + .include diff --git a/tests/sys/opencrypto/Makefile b/tests/sys/opencrypto/Makefile index a0094091ecc6..f9685b166afc 100644 --- a/tests/sys/opencrypto/Makefile +++ b/tests/sys/opencrypto/Makefile @@ -21,4 +21,6 @@ PYMODULES= cryptodev.py cryptodevh.py cryptotest.py ${PACKAGE}FILES+= ${PYMODULES} +WARNS?= 6 + .include diff --git a/tests/sys/pjdfstest/pjdfstest/Makefile b/tests/sys/pjdfstest/pjdfstest/Makefile index 53e29c3891fb..e676cc036bad 100644 --- a/tests/sys/pjdfstest/pjdfstest/Makefile +++ b/tests/sys/pjdfstest/pjdfstest/Makefile @@ -10,4 +10,6 @@ MAN= CFLAGS+= -I${.CURDIR:H} +WARNS?= 6 + .include diff --git a/tools/regression/aio/aiop/Makefile b/tools/regression/aio/aiop/Makefile index aac9a3b89e45..38d9db62266a 100644 --- a/tools/regression/aio/aiop/Makefile +++ b/tools/regression/aio/aiop/Makefile @@ -3,4 +3,6 @@ PROG= aiop MAN= +WARNS= 6 + .include diff --git a/tools/regression/bpf/bpf_filter/Makefile b/tools/regression/bpf/bpf_filter/Makefile index e01a54e26cb3..d0038f915239 100644 --- a/tools/regression/bpf/bpf_filter/Makefile +++ b/tools/regression/bpf/bpf_filter/Makefile @@ -46,6 +46,7 @@ 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 c31ca53f4579..c04223bbfec8 100644 --- a/tools/regression/doat/Makefile +++ b/tools/regression/doat/Makefile @@ -3,5 +3,6 @@ PROG= doat MAN= +WARNS?=6 .include diff --git a/tools/regression/geom_gpt/Makefile b/tools/regression/geom_gpt/Makefile index eb5a9659ff4f..92d1f020c916 100644 --- a/tools/regression/geom_gpt/Makefile +++ b/tools/regression/geom_gpt/Makefile @@ -5,4 +5,6 @@ MAN= LIBADD+= geom +WARNS?= 6 + .include diff --git a/tools/regression/include/stdatomic/Makefile b/tools/regression/include/stdatomic/Makefile index 2bc346a7d6fc..ae9982ac1418 100644 --- a/tools/regression/include/stdatomic/Makefile +++ b/tools/regression/include/stdatomic/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= logic +WARNS=6 MAN= .include diff --git a/tools/regression/netinet/ipbroadcast/Makefile b/tools/regression/netinet/ipbroadcast/Makefile index c1e5bba93dcf..a1b497ae145c 100644 --- a/tools/regression/netinet/ipbroadcast/Makefile +++ b/tools/regression/netinet/ipbroadcast/Makefile @@ -5,4 +5,6 @@ PROG= ipbroadcast MAN= +WARNS?= 6 + .include diff --git a/tools/regression/rpcsec_gss/Makefile b/tools/regression/rpcsec_gss/Makefile index 6f9debb7c2c3..bea9d9c10e21 100644 --- a/tools/regression/rpcsec_gss/Makefile +++ b/tools/regression/rpcsec_gss/Makefile @@ -2,6 +2,7 @@ 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 d3b3f42ce2a8..e9bfba606c10 100644 --- a/tools/regression/sockets/accept_fd_leak/Makefile +++ b/tools/regression/sockets/accept_fd_leak/Makefile @@ -4,5 +4,6 @@ PROG= accept_fd_leak MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/accf_data_attach/Makefile b/tools/regression/sockets/accf_data_attach/Makefile index e7942ced5d02..4d337282eade 100644 --- a/tools/regression/sockets/accf_data_attach/Makefile +++ b/tools/regression/sockets/accf_data_attach/Makefile @@ -4,5 +4,6 @@ PROG= accf_data_attach MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/fstat/Makefile b/tools/regression/sockets/fstat/Makefile index d5cb72419969..a583166d10c9 100644 --- a/tools/regression/sockets/fstat/Makefile +++ b/tools/regression/sockets/fstat/Makefile @@ -4,5 +4,6 @@ PROG= fstat MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/kqueue/Makefile b/tools/regression/sockets/kqueue/Makefile index e37eadfbb203..6771d25acf66 100644 --- a/tools/regression/sockets/kqueue/Makefile +++ b/tools/regression/sockets/kqueue/Makefile @@ -4,5 +4,6 @@ PROG= kqueue MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/listen_backlog/Makefile b/tools/regression/sockets/listen_backlog/Makefile index 091d7a420c76..e2eb1350710a 100644 --- a/tools/regression/sockets/listen_backlog/Makefile +++ b/tools/regression/sockets/listen_backlog/Makefile @@ -2,5 +2,6 @@ PROG= listen_backlog MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/listen_kqueue/Makefile b/tools/regression/sockets/listen_kqueue/Makefile index a506f262d06a..d49a597fc8f5 100644 --- a/tools/regression/sockets/listen_kqueue/Makefile +++ b/tools/regression/sockets/listen_kqueue/Makefile @@ -2,5 +2,6 @@ PROG= listen_kqueue MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/listenclose/Makefile b/tools/regression/sockets/listenclose/Makefile index ee147dad8cef..8f4dc4e922d4 100644 --- a/tools/regression/sockets/listenclose/Makefile +++ b/tools/regression/sockets/listenclose/Makefile @@ -4,5 +4,6 @@ PROG= listenclose MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/pr_atomic/Makefile b/tools/regression/sockets/pr_atomic/Makefile index a52433c6ef26..1dc85ffbeff8 100644 --- a/tools/regression/sockets/pr_atomic/Makefile +++ b/tools/regression/sockets/pr_atomic/Makefile @@ -2,5 +2,6 @@ PROG= pr_atomic MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/reconnect/Makefile b/tools/regression/sockets/reconnect/Makefile index 285d075bca4b..d8fa5e09b502 100644 --- a/tools/regression/sockets/reconnect/Makefile +++ b/tools/regression/sockets/reconnect/Makefile @@ -4,5 +4,6 @@ PROG= reconnect MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/rtsocket/Makefile b/tools/regression/sockets/rtsocket/Makefile index fcb2e40acca1..f68b6c3a2e2c 100644 --- a/tools/regression/sockets/rtsocket/Makefile +++ b/tools/regression/sockets/rtsocket/Makefile @@ -2,5 +2,6 @@ PROG= rtsocket MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/sblock/Makefile b/tools/regression/sockets/sblock/Makefile index 1992a0a652ac..aa2f890bc447 100644 --- a/tools/regression/sockets/sblock/Makefile +++ b/tools/regression/sockets/sblock/Makefile @@ -4,5 +4,6 @@ PROG= sblock MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/sendfile/Makefile b/tools/regression/sockets/sendfile/Makefile index f1ba7a1cf596..6e9c1ab70164 100644 --- a/tools/regression/sockets/sendfile/Makefile +++ b/tools/regression/sockets/sendfile/Makefile @@ -4,6 +4,7 @@ PROG= sendfile MAN= +WARNS?= 6 LIBADD= md .include diff --git a/tools/regression/sockets/shutdown/Makefile b/tools/regression/sockets/shutdown/Makefile index c36398c5af24..63045f5556ff 100644 --- a/tools/regression/sockets/shutdown/Makefile +++ b/tools/regression/sockets/shutdown/Makefile @@ -4,5 +4,6 @@ PROG= shutdown MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/sigpipe/Makefile b/tools/regression/sockets/sigpipe/Makefile index bd7720fbcbed..51167011edb6 100644 --- a/tools/regression/sockets/sigpipe/Makefile +++ b/tools/regression/sockets/sigpipe/Makefile @@ -4,5 +4,6 @@ PROG= sigpipe MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/so_setfib/Makefile b/tools/regression/sockets/so_setfib/Makefile index eadb3efb1c36..90111fb86bd5 100644 --- a/tools/regression/sockets/so_setfib/Makefile +++ b/tools/regression/sockets/so_setfib/Makefile @@ -4,6 +4,7 @@ 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 61e92ed73ce8..2ec5b209ce2c 100644 --- a/tools/regression/sockets/udp_pingpong/Makefile +++ b/tools/regression/sockets/udp_pingpong/Makefile @@ -2,5 +2,6 @@ PROG= udp_pingpong MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_bindconnect/Makefile b/tools/regression/sockets/unix_bindconnect/Makefile index 4bb4fc011ba4..52cc8442be09 100644 --- a/tools/regression/sockets/unix_bindconnect/Makefile +++ b/tools/regression/sockets/unix_bindconnect/Makefile @@ -2,5 +2,6 @@ PROG= unix_bindconnect MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_close_race/Makefile b/tools/regression/sockets/unix_close_race/Makefile index 690929edc2bc..370adc469896 100644 --- a/tools/regression/sockets/unix_close_race/Makefile +++ b/tools/regression/sockets/unix_close_race/Makefile @@ -2,5 +2,6 @@ PROG= unix_close_race MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_gc/Makefile b/tools/regression/sockets/unix_gc/Makefile index 09ba07ae65ee..184660965069 100644 --- a/tools/regression/sockets/unix_gc/Makefile +++ b/tools/regression/sockets/unix_gc/Makefile @@ -2,5 +2,6 @@ PROG= unix_gc MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_sendtorace/Makefile b/tools/regression/sockets/unix_sendtorace/Makefile index 7d26fc8b1383..75e7b9f0b606 100644 --- a/tools/regression/sockets/unix_sendtorace/Makefile +++ b/tools/regression/sockets/unix_sendtorace/Makefile @@ -2,5 +2,6 @@ PROG= unix_sendtorace MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_socket/Makefile b/tools/regression/sockets/unix_socket/Makefile index 7ebc03fc22f3..bb6045637ed1 100644 --- a/tools/regression/sockets/unix_socket/Makefile +++ b/tools/regression/sockets/unix_socket/Makefile @@ -2,5 +2,6 @@ PROG= unix_socket MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/unix_sorflush/Makefile b/tools/regression/sockets/unix_sorflush/Makefile index 879dcc8ef533..db0aa6ade00d 100644 --- a/tools/regression/sockets/unix_sorflush/Makefile +++ b/tools/regression/sockets/unix_sorflush/Makefile @@ -2,5 +2,6 @@ PROG= unix_sorflush MAN= +WARNS?= 6 .include diff --git a/tools/regression/sockets/zerosend/Makefile b/tools/regression/sockets/zerosend/Makefile index 9706b25ea899..18f7dd3e649a 100644 --- a/tools/regression/sockets/zerosend/Makefile +++ b/tools/regression/sockets/zerosend/Makefile @@ -2,5 +2,6 @@ PROG= zerosend MAN= +WARNS?= 6 .include diff --git a/tools/test/auxinfo/Makefile b/tools/test/auxinfo/Makefile index f40c81d87652..0e6d80992ad8 100644 --- a/tools/test/auxinfo/Makefile +++ b/tools/test/auxinfo/Makefile @@ -2,5 +2,6 @@ PROG= auxinfo MAN= +WARNS?= 6 .include diff --git a/tools/test/iconv/posix/Makefile b/tools/test/iconv/posix/Makefile index aafaadebafe7..891142412df8 100644 --- a/tools/test/iconv/posix/Makefile +++ b/tools/test/iconv/posix/Makefile @@ -3,4 +3,6 @@ PROG= posix MAN= +WARNS?= 6 + .include diff --git a/tools/test/malloc/Makefile b/tools/test/malloc/Makefile index ac3fdd89486b..455dec39920b 100644 --- a/tools/test/malloc/Makefile +++ b/tools/test/malloc/Makefile @@ -4,6 +4,7 @@ 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 4fe5fb155cd1..e4c525920d8c 100644 --- a/tools/test/net/Makefile +++ b/tools/test/net/Makefile @@ -2,6 +2,7 @@ PROGS= listen connect MAN= +WARNS?= 6 test: ${PROGS} diff --git a/tools/test/netfibs/Makefile b/tools/test/netfibs/Makefile index 7262a21356c8..689d613616e1 100644 --- a/tools/test/netfibs/Makefile +++ b/tools/test/netfibs/Makefile @@ -2,5 +2,6 @@ PROG= reflect MAN= +WARNS?= 6 .include diff --git a/tools/test/ptrace/Makefile b/tools/test/ptrace/Makefile index 46e0aee6b53f..a11b0a16a846 100644 --- a/tools/test/ptrace/Makefile +++ b/tools/test/ptrace/Makefile @@ -2,5 +2,6 @@ PROG= scescx MAN= +WARNS?= 6 .include diff --git a/tools/tools/aac/Makefile b/tools/tools/aac/Makefile index 9f2f4a7249cd..03c5dcda9ed9 100644 --- a/tools/tools/aac/Makefile +++ b/tools/tools/aac/Makefile @@ -2,6 +2,7 @@ PROG= aac_checkq MAN= +WARNS?=6 BINDIR?=/usr/local/bin .include diff --git a/tools/tools/cfi/Makefile b/tools/tools/cfi/Makefile index 9f4dd10a2828..5a49f2d38438 100644 --- a/tools/tools/cfi/Makefile +++ b/tools/tools/cfi/Makefile @@ -3,5 +3,6 @@ PROG= cfi BINDIR= /usr/local/bin MAN= *** 279 LINES SKIPPED ***