Index: head/cddl/Makefile.inc =================================================================== --- head/cddl/Makefile.inc (revision 366303) +++ head/cddl/Makefile.inc (revision 366304) @@ -1,15 +1,13 @@ # $FreeBSD$ OPENSOLARIS_USR_DISTDIR= ${.CURDIR}/../../../cddl/contrib/opensolaris OPENSOLARIS_SYS_DISTDIR= ${.CURDIR}/../../../sys/cddl/contrib/opensolaris 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. NO_LINT= Index: head/gnu/usr.bin/dialog/Makefile =================================================================== --- head/gnu/usr.bin/dialog/Makefile (revision 366303) +++ head/gnu/usr.bin/dialog/Makefile (revision 366304) @@ -1,12 +1,10 @@ # $FreeBSD$ DIALOG= ${SRCTOP}/contrib/dialog PROG= dialog LIBADD= dialog ncursesw m CFLAGS+= -I${.CURDIR} -I${DIALOG} .PATH: ${DIALOG} -WARNS?= 6 - .include Index: head/lib/googletest/Makefile.inc =================================================================== --- head/lib/googletest/Makefile.inc (revision 366303) +++ head/lib/googletest/Makefile.inc (revision 366304) @@ -1,14 +1,12 @@ # $FreeBSD$ .include GTEST_DIR= ${SRCTOP}/contrib/googletest GOOGLEMOCK_SRCROOT= ${GTEST_DIR}/googlemock GOOGLETEST_SRCROOT= ${GTEST_DIR}/googletest CXXFLAGS+= ${GTESTS_FLAGS} # Silence warnings about usage of deprecated std::auto_ptr CXXWARNFLAGS+= -Wno-deprecated-declarations - -WARNS?= 6 Index: head/lib/libcam/tests/Makefile =================================================================== --- head/lib/libcam/tests/Makefile (revision 366303) +++ head/lib/libcam/tests/Makefile (revision 366304) @@ -1,10 +1,8 @@ # $FreeBSD$ ATF_TESTS_C+= libcam_test ATF_TESTS_C+= cam_test LIBADD+= cam -WARNS?= 6 - .include Index: head/lib/libcrypt/tests/Makefile =================================================================== --- head/lib/libcrypt/tests/Makefile (revision 366303) +++ head/lib/libcrypt/tests/Makefile (revision 366304) @@ -1,13 +1,12 @@ # $FreeBSD$ ATF_TESTS_C+= crypt_tests NETBSD_ATF_TESTS_C+= crypt_test -WARNS?= 6 CFLAGS+= -I${.CURDIR:H} LIBADD= crypt .include .include Index: head/lib/libiconv_modules/Makefile.inc =================================================================== --- head/lib/libiconv_modules/Makefile.inc (revision 366303) +++ head/lib/libiconv_modules/Makefile.inc (revision 366304) @@ -1,17 +1,16 @@ # $FreeBSD$ .PATH: ${SRCTOP}/lib/libc/iconv SHLIB_MAJOR= 4 -WARNS?= 6 CFLAGS+= -I${SRCTOP}/lib/libc/iconv CFLAGS+= -Dbool=_Bool .if !defined(COMPAT_32BIT) SHLIBDIR= /usr/lib/i18n .else SHLIBDIR= /usr/lib32/i18n .endif LIBDIR= ${SHLIBDIR} MK_PROFILE= no Index: head/lib/libkvm/Makefile =================================================================== --- head/lib/libkvm/Makefile (revision 366303) +++ head/lib/libkvm/Makefile (revision 366304) @@ -1,45 +1,43 @@ # @(#)Makefile 8.1 (Berkeley) 6/4/93 # $FreeBSD$ LIB= kvm PACKAGE= runtime 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 \ kvm_amd64.c kvm_minidump_amd64.c \ kvm_arm.c kvm_minidump_arm.c \ kvm_i386.c kvm_minidump_i386.c \ kvm_minidump_mips.c \ kvm_powerpc.c kvm_powerpc64.c \ kvm_minidump_riscv.c \ kvm_minidump_powerpc64.c kvm_minidump_powerpc64_hpt.c INCS= kvm.h LIBADD= elf MAN= kvm.3 kvm_getcptime.3 kvm_geterr.3 kvm_getloadavg.3 \ kvm_getpcpu.3 kvm_getprocs.3 kvm_getswapinfo.3 kvm_kerndisp.3 \ kvm_native.3 kvm_nlist.3 kvm_open.3 kvm_read.3 MLINKS+=kvm_getpcpu.3 kvm_getmaxcpu.3 \ kvm_getpcpu.3 kvm_dpcpu_setcpu.3 \ kvm_getpcpu.3 kvm_read_zpcpu.3 \ kvm_getpcpu.3 kvm_counter_u64_fetch.3 MLINKS+=kvm_getprocs.3 kvm_getargv.3 kvm_getprocs.3 kvm_getenvv.3 MLINKS+=kvm_nlist.3 kvm_nlist2.3 MLINKS+=kvm_open.3 kvm_close.3 kvm_open.3 kvm_open2.3 kvm_open.3 kvm_openfiles.3 MLINKS+=kvm_read.3 kvm_read2.3 kvm_read.3 kvm_write.3 .include HAS_TESTS= SUBDIR.${MK_TESTS}= tests .include Index: head/lib/libkvm/tests/Makefile =================================================================== --- head/lib/libkvm/tests/Makefile (revision 366303) +++ head/lib/libkvm/tests/Makefile (revision 366304) @@ -1,24 +1,22 @@ # $FreeBSD$ .include ATF_TESTS_C+= kvm_close_test ATF_TESTS_C+= kvm_geterr_test ATF_TESTS_C+= kvm_open_test ATF_TESTS_C+= kvm_open2_test ATF_TESTS_C+= kvm_read_test CFLAGS.kvm_geterr_test+= -I${.CURDIR:H} 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 SRCS.$t= $t.c kvm_test_common.c .endfor .include Index: head/lib/libpathconv/tests/Makefile =================================================================== --- head/lib/libpathconv/tests/Makefile (revision 366303) +++ head/lib/libpathconv/tests/Makefile (revision 366304) @@ -1,11 +1,10 @@ # $FreeBSD$ TAP_TESTS_C+= abs2rel TAP_TESTS_C+= rel2abs -WARNS?= 6 #LIBADD+= pathconv #LDADD+= -L .. -lpathconv LDADD+= ../libpathconv.a .include Index: head/lib/libproc/tests/Makefile =================================================================== --- head/lib/libproc/tests/Makefile (revision 366303) +++ head/lib/libproc/tests/Makefile (revision 366304) @@ -1,17 +1,16 @@ # $FreeBSD$ ATF_TESTS_C+= proc_test 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 # for testing symbol lookup. STRIP= CFLAGS.target_prog.c+= -O0 .include Index: head/lib/libsbuf/tests/Makefile =================================================================== --- head/lib/libsbuf/tests/Makefile (revision 366303) +++ head/lib/libsbuf/tests/Makefile (revision 366304) @@ -1,11 +1,9 @@ # $FreeBSD$ ATF_TESTS_C+= sbuf_core_test ATF_TESTS_C+= sbuf_stdio_test ATF_TESTS_C+= sbuf_string_test LIBADD+= sbuf util -WARNS?= 6 - .include Index: head/libexec/Makefile.inc =================================================================== --- head/libexec/Makefile.inc (revision 366303) +++ head/libexec/Makefile.inc (revision 366304) @@ -1,7 +1,6 @@ # @(#)Makefile.inc 8.1 (Berkeley) 6/4/93 # $FreeBSD$ BINDIR?= /usr/libexec -WARNS?= 6 WFORMAT?= 1 Index: head/libexec/getty/Makefile =================================================================== --- head/libexec/getty/Makefile (revision 366303) +++ head/libexec/getty/Makefile (revision 366304) @@ -1,14 +1,13 @@ # from: @(#)Makefile 8.1 (Berkeley) 6/4/93 # $FreeBSD$ CONFS= gettytab PROG= getty SRCS= main.c init.c subr.c chat.c LIBADD= util MAN= gettytab.5 ttys.5 getty.8 -WARNS?= 6 WFORMAT=0 .include Index: head/libexec/rtld-elf/Makefile =================================================================== --- head/libexec/rtld-elf/Makefile (revision 366303) +++ head/libexec/rtld-elf/Makefile (revision 366304) @@ -1,94 +1,93 @@ # $FreeBSD$ # Use the following command to build local debug version of dynamic # linker: # make DEBUG_FLAGS=-g WITHOUT_TESTS=yes all RTLD_ELF_DIR:= ${.PARSEDIR} .include PACKAGE= clibs MK_PIE= no # Always position independent using local rules MK_SSP= no CONFS= libmap.conf PROG?= ld-elf.so.1 .if (${PROG:M*ld-elf32*} != "") TAGS+= lib32 .endif SRCS= \ crtbrand.S \ rtld_start.S \ reloc.c \ rtld.c \ rtld_lock.c \ rtld_malloc.c \ rtld_printf.c \ map_object.c \ xmalloc.c \ debug.c \ libmap.c MAN?= rtld.1 ACFLAGS+= -DLOCORE CFLAGS+= -Wall -DFREEBSD_ELF -DIN_RTLD -ffreestanding CFLAGS+= -I${SRCTOP}/lib/csu/common .if exists(${RTLD_ELF_DIR}/${MACHINE_ARCH:S/powerpc64le/powerpc64/}) RTLD_ARCH= ${MACHINE_ARCH:S/powerpc64le/powerpc64/} .else RTLD_ARCH= ${MACHINE_CPUARCH} .endif CFLAGS+= -I${RTLD_ELF_DIR}/${RTLD_ARCH} -I${RTLD_ELF_DIR} NO_WCAST_ALIGN= yes -WARNS?= 6 INSTALLFLAGS= -C -b PRECIOUSPROG= BINDIR= /libexec SYMLINKS= ../..${BINDIR}/${PROG} ${LIBEXECDIR}/${PROG} MLINKS?= rtld.1 ld-elf.so.1.1 \ rtld.1 ld.so.1 CFLAGS+= -fpic -DPIC $(DEBUG) LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs -nostdlib -e ${RTLD_ENTRY} # Pull in the dependencies that we use from libc .include "rtld-libc/Makefile.inc" .if ${MK_TOOLCHAIN} == "no" LDFLAGS+= -L${LIBCDIR} .endif VERSION_DEF= ${LIBCSRCDIR}/Versions.def SYMBOL_MAPS= ${RTLD_ELF_DIR}/Symbol.map VERSION_MAP= Version.map LDFLAGS+= -Wl,--version-script=${VERSION_MAP} .if exists(${RTLD_ELF_DIR}/${RTLD_ARCH}/Symbol.map) SYMBOL_MAPS+= ${RTLD_ELF_DIR}/${RTLD_ARCH}/Symbol.map .endif .sinclude "${RTLD_ELF_DIR}/${RTLD_ARCH}/Makefile.inc" RTLD_ENTRY?= .rtld_start # Since moving rtld-elf to /libexec, we need to create a symlink. # Fixup the existing binary that's there so we can symlink over it. beforeinstall: .if exists(${DESTDIR}/usr/libexec/${PROG}) && ${MK_STAGING} == "no" -chflags -h noschg ${DESTDIR}/usr/libexec/${PROG} .endif .PATH: ${RTLD_ELF_DIR}/${RTLD_ARCH} ${SRCTOP}/lib/csu/common .if ${.CURDIR} == ${RTLD_ELF_DIR} HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .endif .include ${PROG_FULL}: ${VERSION_MAP} .include .if ${COMPILER_TYPE} == "gcc" # GCC warns about redeclarations even though they have __exported # and are therefore not identical to the ones from the system headers. CFLAGS+= -Wno-redundant-decls .endif Index: head/libexec/rtld-elf/tests/libpythagoras/Makefile =================================================================== --- head/libexec/rtld-elf/tests/libpythagoras/Makefile (revision 366303) +++ head/libexec/rtld-elf/tests/libpythagoras/Makefile (revision 366304) @@ -1,16 +1,15 @@ # $FreeBSD$ .include LIB= pythagoras SHLIB_MAJOR= 0 LIBDIR= ${TESTSBASE}/libexec/rtld-elf SHLIBDIR= ${TESTSBASE}/libexec/rtld-elf SRCS= pythagoras.c -WARNS?= 6 LIBADD= m .include Index: head/libexec/tftpd/tests/Makefile =================================================================== --- head/libexec/tftpd/tests/Makefile (revision 366303) +++ head/libexec/tftpd/tests/Makefile (revision 366304) @@ -1,12 +1,11 @@ # $FreeBSD$ .include ATF_TESTS_C= functional TEST_METADATA.functional+= timeout=15 LIBADD= util -WARNS?= 6 CSTD= c11 .include Index: head/sbin/decryptcore/Makefile =================================================================== --- head/sbin/decryptcore/Makefile (revision 366303) +++ head/sbin/decryptcore/Makefile (revision 366304) @@ -1,13 +1,11 @@ # $FreeBSD$ PROG= decryptcore LIBADD= crypto pjdlog MAN= decryptcore.8 CFLAGS+=-I${SRCTOP}/lib/libpjdlog -WARNS?= 6 - .include Index: head/sbin/pfilctl/Makefile =================================================================== --- head/sbin/pfilctl/Makefile (revision 366303) +++ head/sbin/pfilctl/Makefile (revision 366304) @@ -1,9 +1,8 @@ # $FreeBSD$ PROG= pfilctl SRCS= pfilctl.c -WARNS?= 6 MAN= pfilctl.8 .include Index: head/sbin/ping/tests/Makefile =================================================================== --- head/sbin/ping/tests/Makefile (revision 366303) +++ head/sbin/ping/tests/Makefile (revision 366304) @@ -1,13 +1,11 @@ # $FreeBSD$ -WARNS?= 6 - ATF_TESTS_C+= in_cksum_test SRCS.in_cksum_test= in_cksum_test.c ../utils.c PACKAGE= tests ATF_TESTS_SH+= ping_test ${PACKAGE}FILES+= ping_c1_s56_t1.out .include Index: head/sbin/recoverdisk/Makefile =================================================================== --- head/sbin/recoverdisk/Makefile (revision 366303) +++ head/sbin/recoverdisk/Makefile (revision 366304) @@ -1,13 +1,11 @@ # $FreeBSD$ PACKAGE=runtime PROG= recoverdisk LDFLAGS += -lm -WARNS?= 6 - .include test: ${PROG} ./${PROG} /dev/ad0 Index: head/sys/teken/demo/Makefile =================================================================== --- head/sys/teken/demo/Makefile (revision 366303) +++ head/sys/teken/demo/Makefile (revision 366304) @@ -1,9 +1,7 @@ # $FreeBSD$ PROG= teken_demo LDADD= -lncursesw -lteken -lutil MAN= -WARNS?= 6 - .include Index: head/sys/teken/libteken/Makefile =================================================================== --- head/sys/teken/libteken/Makefile (revision 366303) +++ head/sys/teken/libteken/Makefile (revision 366304) @@ -1,39 +1,38 @@ # $FreeBSD$ LIB= teken SHLIB_MAJOR= 0 CFLAGS+=-I. -WARNS?= 6 SRCDIR= ${.CURDIR}/.. .PATH: ${SRCDIR} SRCS= teken.c teken_state.h INCS= teken.h CLEANFILES=teken_state.h MAN= teken.3 MLINKS= teken.3 teken_256to8.3 \ teken.3 teken_get_curattr.3 \ teken.3 teken_get_cursor.3 \ teken.3 teken_get_defattr.3 \ teken.3 teken_get_defattr_cons25.3 \ teken.3 teken_get_sequence.3 \ teken.3 teken_get_winsize.3 \ teken.3 teken_init.3 \ teken.3 teken_input.3 \ teken.3 teken_set_8bit.3 \ teken.3 teken_set_cons25.3 \ teken.3 teken_set_curattr.3 \ teken.3 teken_set_cursor.3 \ teken.3 teken_set_defattr.3 \ teken.3 teken_set_winsize.3 teken_state.h: ${SRCDIR}/gensequences ${SRCDIR}/sequences awk -f ${SRCDIR}/gensequences ${SRCDIR}/sequences > ${.TARGET} VERSION_DEF= ${.CURDIR}/../../../lib/libc/Versions.def SYMBOL_MAPS= ${.CURDIR}/Symbol.map .include Index: head/sys/teken/stress/Makefile =================================================================== --- head/sys/teken/stress/Makefile (revision 366303) +++ head/sys/teken/stress/Makefile (revision 366304) @@ -1,9 +1,7 @@ # $FreeBSD$ PROG= teken_stress LDADD= -lteken MAN= -WARNS?= 6 - .include Index: head/tests/sys/Makefile.inc =================================================================== --- head/tests/sys/Makefile.inc (revision 366303) +++ head/tests/sys/Makefile.inc (revision 366304) @@ -1,5 +1,3 @@ # $FreeBSD$ -WARNS?= 6 - .include "${SRCTOP}/tests/Makefile.inc0" Index: head/tests/sys/aio/Makefile =================================================================== --- head/tests/sys/aio/Makefile (revision 366303) +++ head/tests/sys/aio/Makefile (revision 366304) @@ -1,22 +1,20 @@ # $FreeBSD$ TESTSDIR= ${TESTSBASE}/sys/aio ATF_TESTS_C+= aio_test ATF_TESTS_C+= lio_test TEST_METADATA.aio_test+= timeout="30" TEST_METADATA.lio_test+= timeout="10" # Some lio_test testcases involve system resource limitations, so cannot run concurrently TEST_METADATA.lio_test+= is_exclusive=true PLAIN_TESTS_C+= aio_kqueue_test PLAIN_TESTS_C+= lio_kqueue_test LIBADD.aio_test+= util rt LIBADD.lio_test+= rt CFLAGS+= -I${.CURDIR:H:H} -WARNS?= 6 - .include Index: head/tests/sys/audit/Makefile =================================================================== --- head/tests/sys/audit/Makefile (revision 366303) +++ head/tests/sys/audit/Makefile (revision 366304) @@ -1,60 +1,58 @@ # $FreeBSD$ TESTSDIR= ${TESTSBASE}/sys/audit ATF_TESTS_C= file-attribute-access ATF_TESTS_C+= file-attribute-modify ATF_TESTS_C+= file-create ATF_TESTS_C+= file-delete ATF_TESTS_C+= file-close ATF_TESTS_C+= file-write ATF_TESTS_C+= file-read ATF_TESTS_C+= open ATF_TESTS_C+= ioctl ATF_TESTS_C+= network ATF_TESTS_C+= inter-process ATF_TESTS_C+= administrative ATF_TESTS_C+= process-control ATF_TESTS_C+= miscellaneous SRCS.file-attribute-access+= file-attribute-access.c SRCS.file-attribute-access+= utils.c SRCS.file-attribute-modify+= file-attribute-modify.c SRCS.file-attribute-modify+= utils.c SRCS.file-create+= file-create.c SRCS.file-create+= utils.c SRCS.file-delete+= file-delete.c SRCS.file-delete+= utils.c SRCS.file-close+= file-close.c SRCS.file-close+= utils.c SRCS.file-write+= file-write.c SRCS.file-write+= utils.c SRCS.file-read+= file-read.c SRCS.file-read+= utils.c SRCS.open+= open.c SRCS.open+= utils.c SRCS.ioctl+= ioctl.c SRCS.ioctl+= utils.c SRCS.network+= network.c SRCS.network+= utils.c SRCS.inter-process+= inter-process.c SRCS.inter-process+= utils.c SRCS.administrative+= administrative.c SRCS.administrative+= utils.c SRCS.process-control+= process-control.c SRCS.process-control+= utils.c SRCS.miscellaneous+= miscellaneous.c SRCS.miscellaneous+= utils.c TEST_METADATA+= timeout="30" 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 .include Index: head/tests/sys/auditpipe/Makefile =================================================================== --- head/tests/sys/auditpipe/Makefile (revision 366303) +++ head/tests/sys/auditpipe/Makefile (revision 366304) @@ -1,11 +1,10 @@ # $FreeBSD$ TESTSDIR= ${TESTSBASE}/sys/auditpipe ATF_TESTS_C= auditpipe_test TEST_METADATA+= required_user="root" TEST_METADATA+= required_files="/dev/auditpipe" -WARNS?= 6 .include Index: head/tests/sys/capsicum/Makefile =================================================================== --- head/tests/sys/capsicum/Makefile (revision 366303) +++ head/tests/sys/capsicum/Makefile (revision 366304) @@ -1,57 +1,55 @@ # $FreeBSD$ .include TESTSDIR= ${TESTSBASE}/sys/capsicum ATF_TESTS_C+= bindat_connectat 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 Index: head/tests/sys/devrandom/Makefile =================================================================== --- head/tests/sys/devrandom/Makefile (revision 366303) +++ head/tests/sys/devrandom/Makefile (revision 366304) @@ -1,26 +1,25 @@ # $FreeBSD$ .include SDEVRANDOM= ${SRCTOP}/sys/dev/random .PATH: ${SDEVRANDOM} TESTSDIR= ${TESTSBASE}/sys/devrandom -WARNS?= 6 CFLAGS+= -I${SRCTOP}/sys ATF_TESTS_C+= uint128_test # Test Chacha CTR behavior <-> uint128 LDADD.uint128_test+= ${SDEVRANDOM}/hash.c LDFLAGS.uint128_test+= -Wno-unused-parameter # hash.c deps: LIBADD.uint128_test+= md # SHA256 LDADD.uint128_test+= ${SRCTOP}/sys/crypto/rijndael/rijndael-alg-fst.c LDADD.uint128_test+= ${SRCTOP}/sys/crypto/rijndael/rijndael-api-fst.c LDFLAGS.uint128_test+= -Wno-cast-align .include Index: head/tests/sys/fs/fusefs/Makefile =================================================================== --- head/tests/sys/fs/fusefs/Makefile (revision 366303) +++ head/tests/sys/fs/fusefs/Makefile (revision 366304) @@ -1,87 +1,85 @@ # $FreeBSD$ .include PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/fs/fusefs # We could simply link all of these files into a single executable. But since # Kyua treats googletest programs as plain tests, it's better to separate them # out, so we get more granular reporting. GTESTS+= access GTESTS+= allow_other GTESTS+= bmap GTESTS+= cache GTESTS+= create GTESTS+= default_permissions GTESTS+= default_permissions_privileged GTESTS+= destroy GTESTS+= dev_fuse_poll GTESTS+= fifo GTESTS+= flush GTESTS+= forget GTESTS+= fsync GTESTS+= fsyncdir GTESTS+= getattr GTESTS+= interrupt GTESTS+= io GTESTS+= link GTESTS+= locks GTESTS+= lookup GTESTS+= mkdir GTESTS+= mknod GTESTS+= mount GTESTS+= nfs GTESTS+= notify GTESTS+= open GTESTS+= opendir GTESTS+= read GTESTS+= readdir GTESTS+= readlink GTESTS+= release GTESTS+= releasedir GTESTS+= rename GTESTS+= rmdir GTESTS+= setattr GTESTS+= statfs GTESTS+= symlink GTESTS+= unlink GTESTS+= write GTESTS+= xattr .for p in ${GTESTS} SRCS.$p+= ${p}.cc SRCS.$p+= getmntopts.c SRCS.$p+= mockfs.cc SRCS.$p+= utils.cc .endfor TEST_METADATA.default_permissions+= required_user="unprivileged" TEST_METADATA.default_permissions_privileged+= required_user="root" TEST_METADATA.mknod+= required_user="root" TEST_METADATA.nfs+= required_user="root" # TODO: drastically increase timeout after test development is mostly complete TEST_METADATA+= timeout=10 FUSEFS= ${SRCTOP}/sys/fs/fuse MOUNT= ${SRCTOP}/sbin/mount # Suppress warnings that GCC generates for the libc++ and gtest headers. CXXWARNFLAGS.gcc+= -Wno-placement-new -Wno-attributes .if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 80000 CXXWARNFLAGS+= -Wno-class-memaccess .endif CXXFLAGS+= -I${SRCTOP}/tests CXXFLAGS+= -I${FUSEFS} CXXFLAGS+= -I${MOUNT} .PATH: ${MOUNT} CXXSTD= c++14 LIBADD+= pthread LIBADD+= gmock gtest LIBADD+= util -WARNS?= 6 - .include Index: head/tests/sys/kern/pipe/Makefile =================================================================== --- head/tests/sys/kern/pipe/Makefile (revision 366303) +++ head/tests/sys/kern/pipe/Makefile (revision 366304) @@ -1,17 +1,15 @@ # $FreeBSD$ TESTSDIR= ${TESTSBASE}/sys/kern/pipe PLAIN_TESTS_C+= big_pipe_test PLAIN_TESTS_C+= pipe_fstat_bug_test PLAIN_TESTS_C+= pipe_ino_test ATF_TESTS_C+= pipe_kqueue_test PLAIN_TESTS_C+= pipe_overcommit1_test PLAIN_TESTS_C+= pipe_overcommit2_test PLAIN_TESTS_C+= pipe_reverse2_test PLAIN_TESTS_C+= pipe_reverse_test PLAIN_TESTS_C+= pipe_wraparound_test -WARNS?= 6 - .include Index: head/tests/sys/mqueue/Makefile =================================================================== --- head/tests/sys/mqueue/Makefile (revision 366303) +++ head/tests/sys/mqueue/Makefile (revision 366304) @@ -1,21 +1,19 @@ # $FreeBSD$ TESTSDIR= ${TESTSBASE}/sys/mqueue ATF_TESTS_SH= mqueue_test BINDIR= ${TESTSDIR} CFLAGS+= -I${SRCTOP}/tests PROGS+= mqtest1 PROGS+= mqtest2 PROGS+= mqtest3 PROGS+= mqtest4 PROGS+= mqtest5 LIBADD+= rt -WARNS?= 6 - .include Index: head/tests/sys/net/Makefile =================================================================== --- head/tests/sys/net/Makefile (revision 366303) +++ head/tests/sys/net/Makefile (revision 366304) @@ -1,30 +1,28 @@ # $FreeBSD$ .include TESTSDIR= ${TESTSBASE}/sys/net BINDIR= ${TESTSDIR} ATF_TESTS_C+= if_epair ATF_TESTS_SH+= if_bridge_test TEST_METADATA.if_bridge_test+= required_programs="python" ATF_TESTS_SH+= if_clone_test ATF_TESTS_SH+= if_lagg_test ATF_TESTS_SH+= if_tun_test ATF_TESTS_SH+= if_vlan TESTS_SUBDIRS+= routing # The tests are written to be run in parallel, but doing so leads to random # panics. I think it's because the kernel's list of interfaces isn't properly # locked. TEST_METADATA+= is_exclusive=true MAN= PROGS+= randsleep CFLAGS+= -I${.CURDIR:H:H} -WARNS?= 6 - .include Index: head/tests/sys/netinet/Makefile =================================================================== --- head/tests/sys/netinet/Makefile (revision 366303) +++ head/tests/sys/netinet/Makefile (revision 366304) @@ -1,25 +1,23 @@ # $FreeBSD$ PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/netinet BINDIR= ${TESTSDIR} ATF_TESTS_C= ip_reass_test \ so_reuseport_lb_test \ socket_afinet ATF_TESTS_SH= carp fibs fibs_test redirect divert forward output lpm TEST_METADATA.output+= required_programs="python" PROGS= udp_dontroute tcp_user_cookie ${PACKAGE}FILES+= redirect.py ${PACKAGE}FILESMODE_redirect.py=0555 MAN= -WARNS?= 6 - .include Index: head/tests/sys/netmap/Makefile =================================================================== --- head/tests/sys/netmap/Makefile (revision 366303) +++ head/tests/sys/netmap/Makefile (revision 366304) @@ -1,16 +1,14 @@ # $FreeBSD$ PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/netmap TEST_METADATA+= required_user="root" TEST_METADATA+= is_exclusive=true PLAIN_TESTS_C+= ctrl-api-test CFLAGS+= -I${SRCTOP}/tests LIBADD+= pthread -WARNS?= 6 - .include Index: head/tests/sys/opencrypto/Makefile =================================================================== --- head/tests/sys/opencrypto/Makefile (revision 366303) +++ head/tests/sys/opencrypto/Makefile (revision 366304) @@ -1,26 +1,24 @@ # $FreeBSD$ PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/opencrypto BINDIR= ${TESTSDIR} CFLAGS+= -I${SRCTOP}/tests CFLAGS.blake2_test.c += -I${SRCTOP}/sys/opencrypto CFLAGS.blake2_test.c += -I${SRCTOP}/sys/contrib/libb2 CFLAGS.poly1305_test.c += -I${SRCTOP}/sys/opencrypto ATF_TESTS_C+= blake2_test poly1305_test TAP_TESTS_SH+= runtests TEST_METADATA.runtests+= required_programs="python3" TEST_METADATA.runtests+= required_user="root" PYMODULES= cryptodev.py cryptodevh.py cryptotest.py ${PACKAGE}FILES+= ${PYMODULES} -WARNS?= 6 - .include Index: head/tests/sys/pjdfstest/pjdfstest/Makefile =================================================================== --- head/tests/sys/pjdfstest/pjdfstest/Makefile (revision 366303) +++ head/tests/sys/pjdfstest/pjdfstest/Makefile (revision 366304) @@ -1,15 +1,13 @@ # $FreeBSD$ PACKAGE= tests .PATH: ${SRCTOP}/contrib/pjdfstest BINDIR= ${TESTSBASE}/sys/pjdfstest PROG= pjdfstest MAN= CFLAGS+= -I${.CURDIR:H} -WARNS?= 6 - .include Index: head/tools/regression/aio/aiop/Makefile =================================================================== --- head/tools/regression/aio/aiop/Makefile (revision 366303) +++ head/tools/regression/aio/aiop/Makefile (revision 366304) @@ -1,8 +1,6 @@ # $FreeBSD$ PROG= aiop MAN= -WARNS= 6 - .include Index: head/tools/regression/bpf/bpf_filter/Makefile =================================================================== --- head/tools/regression/bpf/bpf_filter/Makefile (revision 366303) +++ head/tools/regression/bpf/bpf_filter/Makefile (revision 366304) @@ -1,79 +1,78 @@ # $FreeBSD$ TEST_CASES?= test0001 test0002 test0003 test0004 \ test0005 test0006 test0007 test0008 \ test0009 test0010 test0011 test0012 \ test0013 test0014 test0015 test0016 \ test0017 test0018 test0019 test0020 \ test0021 test0022 test0023 test0024 \ test0025 test0026 test0027 test0028 \ test0029 test0030 test0031 test0032 \ test0033 test0034 test0035 test0036 \ test0037 test0038 test0039 test0040 \ test0041 test0042 test0043 test0044 \ test0045 test0046 test0047 test0048 \ test0049 test0050 test0051 test0052 \ test0053 test0054 test0055 test0056 \ test0057 test0058 test0059 test0060 \ test0061 test0062 test0063 test0064 \ test0065 test0066 test0067 test0068 \ test0069 test0070 test0071 test0072 \ test0073 test0074 test0075 test0076 \ test0077 test0078 test0079 test0080 \ test0081 test0082 test0083 test0084 \ test0085 test0086 test0087 test0088 \ test0089 test0090 test0091 SYSDIR?= ${SRCTOP}/sys SRCS= ${.CURDIR}/bpf_test.c CFLAGS+= -g -I${SYSDIR} -I${.CURDIR}/tests .if defined(BPF_BENCHMARK) CFLAGS+= -DBPF_BENCHMARK -DLOG_LEVEL=0 .elif defined(LOG_LEVEL) CFLAGS+= -DLOG_LEVEL="${LOG_LEVEL}" .endif .if defined(BPF_VALIDATE) CFLAGS+= -DBPF_VALIDATE .endif .if defined(BPF_JIT) && \ (${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386") 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 .endif .for TEST in ${TEST_CASES} ${TEST}: ${.CURDIR}/tests/${TEST}.h ${SRCS} @${CC} ${CFLAGS} -DBPF_TEST_H=\"${TEST}.h\" \ -o ${.CURDIR}/${TEST} ${SRCS} ${LIBS} .endfor all: ${TEST_CASES} .for TEST in ${TEST_CASES} .if defined(BPF_BENCHMARK) || !defined(LOG_LEVEL) || (${LOG_LEVEL} > 0) @${ECHO} -n "${TEST}: " .endif .if defined(BPF_BENCHMARK) @-time ${.CURDIR}/${TEST} .else @-env MALLOC_OPTIONS=J ${.CURDIR}/${TEST} .endif @rm -f ${.CURDIR}/${TEST} .endfor clean: .for TEST in ${TEST_CASES} @rm -f ${.CURDIR}/${TEST} .endfor .include Index: head/tools/regression/doat/Makefile =================================================================== --- head/tools/regression/doat/Makefile (revision 366303) +++ head/tools/regression/doat/Makefile (revision 366304) @@ -1,8 +1,7 @@ # $FreeBSD$ PROG= doat MAN= -WARNS?=6 .include Index: head/tools/regression/geom_gpt/Makefile =================================================================== --- head/tools/regression/geom_gpt/Makefile (revision 366303) +++ head/tools/regression/geom_gpt/Makefile (revision 366304) @@ -1,10 +1,8 @@ # $FreeBSD$ PROG= gctl_test_helper MAN= LIBADD+= geom -WARNS?= 6 - .include Index: head/tools/regression/include/stdatomic/Makefile =================================================================== --- head/tools/regression/include/stdatomic/Makefile (revision 366303) +++ head/tools/regression/include/stdatomic/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= logic -WARNS=6 MAN= .include Index: head/tools/regression/netinet/ipbroadcast/Makefile =================================================================== --- head/tools/regression/netinet/ipbroadcast/Makefile (revision 366303) +++ head/tools/regression/netinet/ipbroadcast/Makefile (revision 366304) @@ -1,10 +1,8 @@ # # $FreeBSD$ # PROG= ipbroadcast MAN= -WARNS?= 6 - .include Index: head/tools/regression/rpcsec_gss/Makefile =================================================================== --- head/tools/regression/rpcsec_gss/Makefile (revision 366303) +++ head/tools/regression/rpcsec_gss/Makefile (revision 366304) @@ -1,9 +1,8 @@ # $FreeBSD$ PROG= rpctest MAN= -WARNS?= 6 LIBADD= rpcsec_gss DEBUG_FLAGS= -g -O0 .include Index: head/tools/regression/sockets/accept_fd_leak/Makefile =================================================================== --- head/tools/regression/sockets/accept_fd_leak/Makefile (revision 366303) +++ head/tools/regression/sockets/accept_fd_leak/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= accept_fd_leak MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/accf_data_attach/Makefile =================================================================== --- head/tools/regression/sockets/accf_data_attach/Makefile (revision 366303) +++ head/tools/regression/sockets/accf_data_attach/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= accf_data_attach MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/fstat/Makefile =================================================================== --- head/tools/regression/sockets/fstat/Makefile (revision 366303) +++ head/tools/regression/sockets/fstat/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= fstat MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/kqueue/Makefile =================================================================== --- head/tools/regression/sockets/kqueue/Makefile (revision 366303) +++ head/tools/regression/sockets/kqueue/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= kqueue MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/listen_backlog/Makefile =================================================================== --- head/tools/regression/sockets/listen_backlog/Makefile (revision 366303) +++ head/tools/regression/sockets/listen_backlog/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= listen_backlog MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/listen_kqueue/Makefile =================================================================== --- head/tools/regression/sockets/listen_kqueue/Makefile (revision 366303) +++ head/tools/regression/sockets/listen_kqueue/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= listen_kqueue MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/listenclose/Makefile =================================================================== --- head/tools/regression/sockets/listenclose/Makefile (revision 366303) +++ head/tools/regression/sockets/listenclose/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= listenclose MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/pr_atomic/Makefile =================================================================== --- head/tools/regression/sockets/pr_atomic/Makefile (revision 366303) +++ head/tools/regression/sockets/pr_atomic/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= pr_atomic MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/reconnect/Makefile =================================================================== --- head/tools/regression/sockets/reconnect/Makefile (revision 366303) +++ head/tools/regression/sockets/reconnect/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= reconnect MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/rtsocket/Makefile =================================================================== --- head/tools/regression/sockets/rtsocket/Makefile (revision 366303) +++ head/tools/regression/sockets/rtsocket/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= rtsocket MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/sblock/Makefile =================================================================== --- head/tools/regression/sockets/sblock/Makefile (revision 366303) +++ head/tools/regression/sockets/sblock/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= sblock MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/sendfile/Makefile =================================================================== --- head/tools/regression/sockets/sendfile/Makefile (revision 366303) +++ head/tools/regression/sockets/sendfile/Makefile (revision 366304) @@ -1,10 +1,9 @@ # # $FreeBSD$ # PROG= sendfile MAN= -WARNS?= 6 LIBADD= md .include Index: head/tools/regression/sockets/shutdown/Makefile =================================================================== --- head/tools/regression/sockets/shutdown/Makefile (revision 366303) +++ head/tools/regression/sockets/shutdown/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= shutdown MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/sigpipe/Makefile =================================================================== --- head/tools/regression/sockets/sigpipe/Makefile (revision 366303) +++ head/tools/regression/sockets/sigpipe/Makefile (revision 366304) @@ -1,9 +1,8 @@ # # $FreeBSD$ # PROG= sigpipe MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/so_setfib/Makefile =================================================================== --- head/tools/regression/sockets/so_setfib/Makefile (revision 366303) +++ head/tools/regression/sockets/so_setfib/Makefile (revision 366304) @@ -1,16 +1,15 @@ # $FreeBSD$ .include PROG= so_setfib MAN= -WARNS?= 6 .if ${MK_INET} != "no" CFLAGS+= -DINET .endif .if ${MK_INET6} != "no" CFLAGS+= -DINET6 .endif .include Index: head/tools/regression/sockets/udp_pingpong/Makefile =================================================================== --- head/tools/regression/sockets/udp_pingpong/Makefile (revision 366303) +++ head/tools/regression/sockets/udp_pingpong/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= udp_pingpong MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_bindconnect/Makefile =================================================================== --- head/tools/regression/sockets/unix_bindconnect/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_bindconnect/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_bindconnect MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_close_race/Makefile =================================================================== --- head/tools/regression/sockets/unix_close_race/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_close_race/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_close_race MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_gc/Makefile =================================================================== --- head/tools/regression/sockets/unix_gc/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_gc/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_gc MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_sendtorace/Makefile =================================================================== --- head/tools/regression/sockets/unix_sendtorace/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_sendtorace/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_sendtorace MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_socket/Makefile =================================================================== --- head/tools/regression/sockets/unix_socket/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_socket/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_socket MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/unix_sorflush/Makefile =================================================================== --- head/tools/regression/sockets/unix_sorflush/Makefile (revision 366303) +++ head/tools/regression/sockets/unix_sorflush/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= unix_sorflush MAN= -WARNS?= 6 .include Index: head/tools/regression/sockets/zerosend/Makefile =================================================================== --- head/tools/regression/sockets/zerosend/Makefile (revision 366303) +++ head/tools/regression/sockets/zerosend/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= zerosend MAN= -WARNS?= 6 .include Index: head/tools/test/auxinfo/Makefile =================================================================== --- head/tools/test/auxinfo/Makefile (revision 366303) +++ head/tools/test/auxinfo/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= auxinfo MAN= -WARNS?= 6 .include Index: head/tools/test/iconv/posix/Makefile =================================================================== --- head/tools/test/iconv/posix/Makefile (revision 366303) +++ head/tools/test/iconv/posix/Makefile (revision 366304) @@ -1,8 +1,6 @@ # $FreeBSD$ PROG= posix MAN= -WARNS?= 6 - .include Index: head/tools/test/malloc/Makefile =================================================================== --- head/tools/test/malloc/Makefile (revision 366303) +++ head/tools/test/malloc/Makefile (revision 366304) @@ -1,16 +1,15 @@ # $FreeBSD$ PROG= malloc SRCS= main.c .PATH: ${.CURDIR}/../../../lib/libc/stdlib MAN= -WARNS?=6 test: malloc @echo @csh -x -c "time ./malloc 500000 2000 8192" @csh -x -c "time ./malloc 50000000 2000 8192" @csh -x -c "time ./malloc 500000 14000 8192" @csh -x -c "time ./malloc 20000000 20000 2048" .include Index: head/tools/test/net/Makefile =================================================================== --- head/tools/test/net/Makefile (revision 366303) +++ head/tools/test/net/Makefile (revision 366304) @@ -1,9 +1,8 @@ # $FreeBSD$ PROGS= listen connect MAN= -WARNS?= 6 test: ${PROGS} .include Index: head/tools/test/netfibs/Makefile =================================================================== --- head/tools/test/netfibs/Makefile (revision 366303) +++ head/tools/test/netfibs/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= reflect MAN= -WARNS?= 6 .include Index: head/tools/test/ptrace/Makefile =================================================================== --- head/tools/test/ptrace/Makefile (revision 366303) +++ head/tools/test/ptrace/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= scescx MAN= -WARNS?= 6 .include Index: head/tools/tools/aac/Makefile =================================================================== --- head/tools/tools/aac/Makefile (revision 366303) +++ head/tools/tools/aac/Makefile (revision 366304) @@ -1,8 +1,7 @@ # $FreeBSD$ PROG= aac_checkq MAN= -WARNS?=6 BINDIR?=/usr/local/bin .include Index: head/tools/tools/cfi/Makefile =================================================================== --- head/tools/tools/cfi/Makefile (revision 366303) +++ head/tools/tools/cfi/Makefile (revision 366304) @@ -1,8 +1,7 @@ # $FreeBSD$ PROG= cfi BINDIR= /usr/local/bin MAN= -WARNS?=6 .include Index: head/tools/tools/find-sb/Makefile =================================================================== --- head/tools/tools/find-sb/Makefile (revision 366303) +++ head/tools/tools/find-sb/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= find-sb MAN= -WARNS?= 6 .include Index: head/tools/tools/fixwhite/Makefile =================================================================== --- head/tools/tools/fixwhite/Makefile (revision 366303) +++ head/tools/tools/fixwhite/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= fixwhite BINDIR= /usr/bin -WARNS= 6 .include Index: head/tools/tools/gensnmpdef/Makefile =================================================================== --- head/tools/tools/gensnmpdef/Makefile (revision 366303) +++ head/tools/tools/gensnmpdef/Makefile (revision 366304) @@ -1,26 +1,24 @@ # $FreeBSD$ # # NB: Install ports/net-mgmt/libsmi .PATH: ${SRCTOP}/contrib/bsnmp/gensnmpdef PROG= gensnmpdef SRCS= gensnmpdef.c MAN= gensnmpdef.1 LOCALBASE?= /usr/local BINDIR= ${LOCALBASE}/bin MANDIR= ${LOCALBASE}/man/man CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib LDADD+= -lsmi -WARNS?= 6 - .include Index: head/tools/tools/ifpifa/Makefile =================================================================== --- head/tools/tools/ifpifa/Makefile (revision 366303) +++ head/tools/tools/ifpifa/Makefile (revision 366304) @@ -1,9 +1,8 @@ # $FreeBSD$ PROG= ifpifa MAN= -WARNS?=6 BINDIR?=/usr/local/bin LIBADD=kvm .include Index: head/tools/tools/ioat/Makefile =================================================================== --- head/tools/tools/ioat/Makefile (revision 366303) +++ head/tools/tools/ioat/Makefile (revision 366304) @@ -1,13 +1,11 @@ # $FreeBSD$ PROG= ioatcontrol MAN= ioatcontrol.8 BINDIR?= /usr/bin CFLAGS+= -I${SRCTOP}/sys/dev/ioat LIBADD= util -WARNS?= 6 - .include Index: head/tools/tools/iwi/Makefile =================================================================== --- head/tools/tools/iwi/Makefile (revision 366303) +++ head/tools/tools/iwi/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= iwistats MAN= -WARNS?=6 .include Index: head/tools/tools/ncpus/Makefile =================================================================== --- head/tools/tools/ncpus/Makefile (revision 366303) +++ head/tools/tools/ncpus/Makefile (revision 366304) @@ -1,14 +1,13 @@ # $FreeBSD$ PROG= ncpus MAN= SRCS= ncpus.c acpi.c .if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386" SRCS+= biosmptable.c .endif BINDIR= /usr/local/bin -WARNS?= 6 LIBADD= devinfo .include Index: head/tools/tools/pciroms/Makefile =================================================================== --- head/tools/tools/pciroms/Makefile (revision 366303) +++ head/tools/tools/pciroms/Makefile (revision 366304) @@ -1,10 +1,8 @@ # # $FreeBSD$ # PROG= pciroms MAN= -WARNS?= 6 - .include Index: head/tools/tools/syscall_timing/Makefile =================================================================== --- head/tools/tools/syscall_timing/Makefile (revision 366303) +++ head/tools/tools/syscall_timing/Makefile (revision 366304) @@ -1,13 +1,11 @@ # # $FreeBSD$ # PROG= syscall_timing CFLAGS+= -static -O MAN= #LIBADD= pthread -WARNS= 6 - .include Index: head/tools/tools/tscdrift/Makefile =================================================================== --- head/tools/tools/tscdrift/Makefile (revision 366303) +++ head/tools/tools/tscdrift/Makefile (revision 366304) @@ -1,9 +1,8 @@ # $FreeBSD$ PROG= tscdrift MAN= -WARNS?= 6 LIBADD= pthread m .include Index: head/tools/tools/vt/mkkfont/Makefile =================================================================== --- head/tools/tools/vt/mkkfont/Makefile (revision 366303) +++ head/tools/tools/vt/mkkfont/Makefile (revision 366304) @@ -1,6 +1,6 @@ +# $FreeBSD$ + PROG= mkkfont MAN1= - -WARNS?= 6 .include Index: head/usr.bin/dpv/Makefile =================================================================== --- head/usr.bin/dpv/Makefile (revision 366303) +++ head/usr.bin/dpv/Makefile (revision 366304) @@ -1,13 +1,11 @@ # $FreeBSD$ PACKAGE= dpv PROG= dpv CFLAGS+= -I${.CURDIR} LIBADD= dpv dialog -WARNS?= 6 - .include Index: head/usr.bin/getconf/tests/Makefile =================================================================== --- head/usr.bin/getconf/tests/Makefile (revision 366303) +++ head/usr.bin/getconf/tests/Makefile (revision 366304) @@ -1,11 +1,9 @@ # $FreeBSD$ ATF_TESTS_SH+= getconf_test PROGS+= arch_type BINDIR= ${TESTSDIR} -WARNS?= 6 - .include Index: head/usr.bin/mkimg/Makefile =================================================================== --- head/usr.bin/mkimg/Makefile (revision 366303) +++ head/usr.bin/mkimg/Makefile (revision 366304) @@ -1,42 +1,40 @@ # $FreeBSD$ .include PROG= mkimg SRCS+= format.c image.c mkimg.c scheme.c uuid.c MAN= mkimg.1 MKIMG_VERSION=20161016 mkimg.o: Makefile CFLAGS+=-DMKIMG_VERSION=${MKIMG_VERSION} CFLAGS+=-DSPARSE_WRITE CFLAGS+=-I${SRCTOP}/sys/sys/disk # List of formats to support SRCS+= \ qcow.c \ raw.c \ vhd.c \ vhdx.c \ vmdk.c # List of schemes to support SRCS+= \ apm.c \ bsd.c \ ebr.c \ gpt.c \ mbr.c \ vtoc8.c BINDIR?=/usr/bin LIBADD= util -WARNS?= 6 - HAS_TESTS= SUBDIR.${MK_TESTS}+= tests .include Index: head/usr.bin/posixshmcontrol/Makefile =================================================================== --- head/usr.bin/posixshmcontrol/Makefile (revision 366303) +++ head/usr.bin/posixshmcontrol/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= posixshmcontrol LIBADD= util -WARNS?= 6 .include Index: head/usr.bin/proccontrol/Makefile =================================================================== --- head/usr.bin/proccontrol/Makefile (revision 366303) +++ head/usr.bin/proccontrol/Makefile (revision 366304) @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= proccontrol -WARNS?= 6 .include Index: head/usr.bin/protect/Makefile =================================================================== --- head/usr.bin/protect/Makefile (revision 366303) +++ head/usr.bin/protect/Makefile (revision 366304) @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= protect -WARNS?= 6 .include Index: head/usr.sbin/bsdinstall/distextract/Makefile =================================================================== --- head/usr.sbin/bsdinstall/distextract/Makefile (revision 366303) +++ head/usr.sbin/bsdinstall/distextract/Makefile (revision 366304) @@ -1,10 +1,9 @@ # $FreeBSD$ BINDIR= ${LIBEXECDIR}/bsdinstall PROG= distextract LIBADD= archive dpv figpar ncursesw dialog m -WARNS?= 6 MAN= .include Index: head/usr.sbin/bsdinstall/distfetch/Makefile =================================================================== --- head/usr.sbin/bsdinstall/distfetch/Makefile (revision 366303) +++ head/usr.sbin/bsdinstall/distfetch/Makefile (revision 366304) @@ -1,10 +1,9 @@ # $FreeBSD$ BINDIR= ${LIBEXECDIR}/bsdinstall PROG= distfetch LIBADD= fetch ncursesw dialog m -WARNS?= 6 MAN= .include Index: head/usr.sbin/bsnmpd/tools/Makefile.inc =================================================================== --- head/usr.sbin/bsnmpd/tools/Makefile.inc (revision 366303) +++ head/usr.sbin/bsnmpd/tools/Makefile.inc (revision 366304) @@ -1,9 +1,7 @@ # $FreeBSD$ # Author: Shteryana Shopova BINDIR?= /usr/bin PACKAGE= bsnmp CFLAGS+= -I. -I${.CURDIR} - -WARNS?= 6 Index: head/usr.sbin/ctld/Makefile =================================================================== --- head/usr.sbin/ctld/Makefile (revision 366303) +++ head/usr.sbin/ctld/Makefile (revision 366304) @@ -1,30 +1,29 @@ # $FreeBSD$ .include CFLAGS+=-I${SRCTOP}/contrib/libucl/include .PATH: ${SRCTOP}/contrib/libucl/include PROG= ctld SRCS= chap.c ctld.c discovery.c isns.c kernel.c keys.c log.c SRCS+= login.c parse.y pdu.c token.l y.tab.h uclparse.c CFLAGS+= -I${.CURDIR} CFLAGS+= -I${SRCTOP}/sys CFLAGS+= -I${SRCTOP}/sys/cam/ctl CFLAGS+= -I${SRCTOP}/sys/dev/iscsi #CFLAGS+= -DICL_KERNEL_PROXY MAN= ctld.8 ctl.conf.5 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" CFLAGS+= -DWANT_ISCSI .endif .include Index: head/usr.sbin/iovctl/Makefile =================================================================== --- head/usr.sbin/iovctl/Makefile (revision 366303) +++ head/usr.sbin/iovctl/Makefile (revision 366304) @@ -1,17 +1,15 @@ # $FreeBSD$ PROG= iovctl SRCS= iovctl.c parse.c validate.c LIBADD= nv ucl m CFLAGS+=-I${SRCTOP}/contrib/libucl/include -WARNS?=6 - MAN= \ iovctl.8 \ iovctl.conf.5 \ .include .include Index: head/usr.sbin/mlx5tool/Makefile =================================================================== --- head/usr.sbin/mlx5tool/Makefile (revision 366303) +++ head/usr.sbin/mlx5tool/Makefile (revision 366304) @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= mlx5tool MAN= mlx5tool.8 -WARNS?= 6 .include Index: head/usr.sbin/pw/tests/Makefile =================================================================== --- head/usr.sbin/pw/tests/Makefile (revision 366303) +++ head/usr.sbin/pw/tests/Makefile (revision 366304) @@ -1,34 +1,33 @@ # $FreeBSD$ PACKAGE= tests BINDIR= ${TESTSDIR} PROGS+= crypt -WARNS?= 6 LIBADD+= crypt ATF_TESTS_SH= pw_etcdir_test \ pw_lock_test \ pw_config_test \ pw_groupadd_test \ pw_groupdel_test \ pw_groupmod_test \ pw_groupshow_test \ pw_useradd_test \ pw_userdel_test \ pw_usermod_test \ pw_usernext_test \ pw_usershow_test .for tp in ${ATF_TESTS_SH} TEST_METADATA.${tp}+= required_user="root" .endfor ${PACKAGE}FILES+= group ${PACKAGE}FILES+= helper_functions.shin ${PACKAGE}FILES+= master.passwd ${PACKAGE}FILES+= pw.conf ${PACKAGE}FILES+= pw-modified.conf .include