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.
projects/aio_writev
Kyle Evans 2 years ago
parent 9f669985b2
commit 7cc42f6d25
Notes: svn2git 2 years ago
svn path=/head/; revision=366304
  1. 2
      cddl/Makefile.inc
  2. 2
      gnu/usr.bin/dialog/Makefile
  3. 2
      lib/googletest/Makefile.inc
  4. 2
      lib/libcam/tests/Makefile
  5. 1
      lib/libcrypt/tests/Makefile
  6. 1
      lib/libiconv_modules/Makefile.inc
  7. 2
      lib/libkvm/Makefile
  8. 2
      lib/libkvm/tests/Makefile
  9. 1
      lib/libpathconv/tests/Makefile
  10. 1
      lib/libproc/tests/Makefile
  11. 2
      lib/libsbuf/tests/Makefile
  12. 1
      libexec/Makefile.inc
  13. 1
      libexec/getty/Makefile
  14. 1
      libexec/rtld-elf/Makefile
  15. 1
      libexec/rtld-elf/tests/libpythagoras/Makefile
  16. 1
      libexec/tftpd/tests/Makefile
  17. 2
      sbin/decryptcore/Makefile
  18. 1
      sbin/pfilctl/Makefile
  19. 2
      sbin/ping/tests/Makefile
  20. 2
      sbin/recoverdisk/Makefile
  21. 2
      sys/teken/demo/Makefile
  22. 1
      sys/teken/libteken/Makefile
  23. 2
      sys/teken/stress/Makefile
  24. 2
      tests/sys/Makefile.inc
  25. 2
      tests/sys/aio/Makefile
  26. 2
      tests/sys/audit/Makefile
  27. 1
      tests/sys/auditpipe/Makefile
  28. 2
      tests/sys/capsicum/Makefile
  29. 1
      tests/sys/devrandom/Makefile
  30. 2
      tests/sys/fs/fusefs/Makefile
  31. 2
      tests/sys/kern/pipe/Makefile
  32. 2
      tests/sys/mqueue/Makefile
  33. 2
      tests/sys/net/Makefile
  34. 2
      tests/sys/netinet/Makefile
  35. 2
      tests/sys/netmap/Makefile
  36. 2
      tests/sys/opencrypto/Makefile
  37. 2
      tests/sys/pjdfstest/pjdfstest/Makefile
  38. 2
      tools/regression/aio/aiop/Makefile
  39. 1
      tools/regression/bpf/bpf_filter/Makefile
  40. 1
      tools/regression/doat/Makefile
  41. 2
      tools/regression/geom_gpt/Makefile
  42. 1
      tools/regression/include/stdatomic/Makefile
  43. 2
      tools/regression/netinet/ipbroadcast/Makefile
  44. 1
      tools/regression/rpcsec_gss/Makefile
  45. 1
      tools/regression/sockets/accept_fd_leak/Makefile
  46. 1
      tools/regression/sockets/accf_data_attach/Makefile
  47. 1
      tools/regression/sockets/fstat/Makefile
  48. 1
      tools/regression/sockets/kqueue/Makefile
  49. 1
      tools/regression/sockets/listen_backlog/Makefile
  50. 1
      tools/regression/sockets/listen_kqueue/Makefile
  51. 1
      tools/regression/sockets/listenclose/Makefile
  52. 1
      tools/regression/sockets/pr_atomic/Makefile
  53. 1
      tools/regression/sockets/reconnect/Makefile
  54. 1
      tools/regression/sockets/rtsocket/Makefile
  55. 1
      tools/regression/sockets/sblock/Makefile
  56. 1
      tools/regression/sockets/sendfile/Makefile
  57. 1
      tools/regression/sockets/shutdown/Makefile
  58. 1
      tools/regression/sockets/sigpipe/Makefile
  59. 1
      tools/regression/sockets/so_setfib/Makefile
  60. 1
      tools/regression/sockets/udp_pingpong/Makefile
  61. 1
      tools/regression/sockets/unix_bindconnect/Makefile
  62. 1
      tools/regression/sockets/unix_close_race/Makefile
  63. 1
      tools/regression/sockets/unix_gc/Makefile
  64. 1
      tools/regression/sockets/unix_sendtorace/Makefile
  65. 1
      tools/regression/sockets/unix_socket/Makefile
  66. 1
      tools/regression/sockets/unix_sorflush/Makefile
  67. 1
      tools/regression/sockets/zerosend/Makefile
  68. 1
      tools/test/auxinfo/Makefile
  69. 2
      tools/test/iconv/posix/Makefile
  70. 1
      tools/test/malloc/Makefile
  71. 1
      tools/test/net/Makefile
  72. 1
      tools/test/netfibs/Makefile
  73. 1
      tools/test/ptrace/Makefile
  74. 1
      tools/tools/aac/Makefile
  75. 1
      tools/tools/cfi/Makefile
  76. 1
      tools/tools/find-sb/Makefile
  77. 1
      tools/tools/fixwhite/Makefile
  78. 2
      tools/tools/gensnmpdef/Makefile
  79. 1
      tools/tools/ifpifa/Makefile
  80. 2
      tools/tools/ioat/Makefile
  81. 1
      tools/tools/iwi/Makefile
  82. 1
      tools/tools/ncpus/Makefile
  83. 2
      tools/tools/pciroms/Makefile
  84. 2
      tools/tools/syscall_timing/Makefile
  85. 1
      tools/tools/tscdrift/Makefile
  86. 4
      tools/tools/vt/mkkfont/Makefile
  87. 2
      usr.bin/dpv/Makefile
  88. 2
      usr.bin/getconf/tests/Makefile
  89. 2
      usr.bin/mkimg/Makefile
  90. 1
      usr.bin/posixshmcontrol/Makefile
  91. 1
      usr.bin/proccontrol/Makefile
  92. 1
      usr.bin/protect/Makefile
  93. 1
      usr.sbin/bsdinstall/distextract/Makefile
  94. 1
      usr.sbin/bsdinstall/distfetch/Makefile
  95. 2
      usr.sbin/bsnmpd/tools/Makefile.inc
  96. 1
      usr.sbin/ctld/Makefile
  97. 2
      usr.sbin/iovctl/Makefile
  98. 1
      usr.sbin/mlx5tool/Makefile
  99. 1
      usr.sbin/pw/tests/Makefile

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save