diff options
95 files changed, 108 insertions, 22 deletions
diff --git a/sbin/Makefile.inc b/sbin/Makefile.inc index f8709625c59a..885e593448fd 100644 --- a/sbin/Makefile.inc +++ b/sbin/Makefile.inc @@ -3,3 +3,4 @@ BINDIR?= /sbin NOSHARED?= YES +WARNS?= 2 diff --git a/sbin/adjkerntz/Makefile b/sbin/adjkerntz/Makefile index d254dcc2a8d2..27c128916f9b 100644 --- a/sbin/adjkerntz/Makefile +++ b/sbin/adjkerntz/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= adjkerntz -WARNS?= 2 MAN= adjkerntz.8 .include <bsd.prog.mk> diff --git a/sbin/atacontrol/Makefile b/sbin/atacontrol/Makefile index 717c53d9df86..95c929891dd5 100644 --- a/sbin/atacontrol/Makefile +++ b/sbin/atacontrol/Makefile @@ -1,5 +1,7 @@ #$FreeBSD$ + PROG= atacontrol +WARNS= 0 MAN= atacontrol.8 .include <bsd.prog.mk> diff --git a/sbin/atm/atm/Makefile b/sbin/atm/atm/Makefile index a3b99d11de86..1ea91e9e716d 100644 --- a/sbin/atm/atm/Makefile +++ b/sbin/atm/atm/Makefile @@ -33,6 +33,7 @@ SRCS= atm.c atm_fore200.c atm_eni.c atm_inet.c atm_print.c \ MAN= atm.8 CFLAGS+= -I${.CURDIR}/../../../sys +WARNS= 0 LDADD+= -latm DPADD+= ${LIBATM} diff --git a/sbin/atm/fore_dnld/Makefile b/sbin/atm/fore_dnld/Makefile index 576a35bf795e..b60b9812e5f3 100644 --- a/sbin/atm/fore_dnld/Makefile +++ b/sbin/atm/fore_dnld/Makefile @@ -32,6 +32,7 @@ MAN= fore_dnld.8 SRCS= fore_dnld.c pca200e.c CFLAGS+= -I${.CURDIR}/../../../sys +WARNS= 0 LDADD+= -latm DPADD+= ${LIBATM} diff --git a/sbin/atm/ilmid/Makefile b/sbin/atm/ilmid/Makefile index a69f154f48e4..75fd79874ee8 100644 --- a/sbin/atm/ilmid/Makefile +++ b/sbin/atm/ilmid/Makefile @@ -31,6 +31,7 @@ PROG= ilmid MAN= ilmid.8 CFLAGS+= -I${.CURDIR}/../../../sys +WARNS= 0 LDADD+= -latm DPADD+= ${LIBATM} diff --git a/sbin/badsect/Makefile b/sbin/badsect/Makefile index 17bcc86dbc83..24224f47bfdd 100644 --- a/sbin/badsect/Makefile +++ b/sbin/badsect/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= badsect +WARNS= 0 MAN= badsect.8 .include <bsd.prog.mk> diff --git a/sbin/bsdlabel/Makefile b/sbin/bsdlabel/Makefile index 9884d552d415..932bcd5ded1a 100644 --- a/sbin/bsdlabel/Makefile +++ b/sbin/bsdlabel/Makefile @@ -8,5 +8,6 @@ MAN= disklabel.5 disklabel.8 .if ${MACHINE} == "pc98" CFLAGS+= -DPC98 .endif +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile index 8b047d3f0cf0..62588e67c4ce 100644 --- a/sbin/camcontrol/Makefile +++ b/sbin/camcontrol/Makefile @@ -7,6 +7,7 @@ MAN= camcontrol.8 SDIR= ${.CURDIR}/../../sys CFLAGS+= -I${SDIR} +WARNS= 0 DPADD= ${LIBCAM} ${LIBSBUF} LDADD+= -lcam -lsbuf diff --git a/sbin/ccdconfig/Makefile b/sbin/ccdconfig/Makefile index ace2477fbd26..811a5aae2965 100644 --- a/sbin/ccdconfig/Makefile +++ b/sbin/ccdconfig/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= ccdconfig +WARNS= 0 MAN= ccdconfig.8 .include <bsd.prog.mk> diff --git a/sbin/clri/Makefile b/sbin/clri/Makefile index 0e99a4e4d411..c68c312f269b 100644 --- a/sbin/clri/Makefile +++ b/sbin/clri/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= clri -WARNS?= 2 MAN= clri.8 .include <bsd.prog.mk> diff --git a/sbin/comcontrol/Makefile b/sbin/comcontrol/Makefile index d8757565b1a0..1fac2b2b77c3 100644 --- a/sbin/comcontrol/Makefile +++ b/sbin/comcontrol/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= comcontrol +WARNS= 0 MAN= comcontrol.8 .include <bsd.prog.mk> diff --git a/sbin/conscontrol/Makefile b/sbin/conscontrol/Makefile index fabb3defc963..ddd2434e6cc5 100644 --- a/sbin/conscontrol/Makefile +++ b/sbin/conscontrol/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= conscontrol -WARNS?= 2 MAN= conscontrol.8 .include <bsd.prog.mk> diff --git a/sbin/cxconfig/Makefile b/sbin/cxconfig/Makefile index 49c493e9545a..e851ec9e17ca 100644 --- a/sbin/cxconfig/Makefile +++ b/sbin/cxconfig/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= cxconfig -WARNS?= 2 MAN= cxconfig.8 .include <bsd.prog.mk> diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile index 602061639e64..45c2a0f7303d 100644 --- a/sbin/dhclient/Makefile +++ b/sbin/dhclient/Makefile @@ -12,6 +12,7 @@ SRCS+= alloc.c bpf.c conflex.c convert.c dispatch.c errwarn.c ethernet.c \ CFLAGS+= -I${DIST_DIR}/includes -I${DIST_DIR} CFLAGS+= -DCLIENT_PATH='"PATH=/sbin:/bin:/usr/sbin:/usr/bin"' -Dwarn=dhcp_warn +WARNS= 0 SCRIPTS= scripts/freebsd SCRIPTSNAME= dhclient-script diff --git a/sbin/disklabel/Makefile b/sbin/disklabel/Makefile index 9884d552d415..932bcd5ded1a 100644 --- a/sbin/disklabel/Makefile +++ b/sbin/disklabel/Makefile @@ -8,5 +8,6 @@ MAN= disklabel.5 disklabel.8 .if ${MACHINE} == "pc98" CFLAGS+= -DPC98 .endif +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/dmesg/Makefile b/sbin/dmesg/Makefile index 777956357ae0..c48be090a94e 100644 --- a/sbin/dmesg/Makefile +++ b/sbin/dmesg/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= dmesg +WARNS= 0 MAN= dmesg.8 LDADD= -lkvm DPADD= ${LIBKVM} diff --git a/sbin/dump/Makefile b/sbin/dump/Makefile index 2df9111f8967..bb47aac96837 100644 --- a/sbin/dump/Makefile +++ b/sbin/dump/Makefile @@ -17,6 +17,7 @@ PROG= dump LINKS= ${BINDIR}/dump ${BINDIR}/rdump CFLAGS+=-DRDUMP CFLAGS+=-I${.CURDIR}/../../libexec/rlogind +WARNS= 0 SRCS= itime.c main.c optr.c dumprmt.c tape.c traverse.c unctime.c MAN= dump.8 MLINKS+=dump.8 rdump.8 diff --git a/sbin/dumpfs/Makefile b/sbin/dumpfs/Makefile index e1c5a7f370de..f26a337e871f 100644 --- a/sbin/dumpfs/Makefile +++ b/sbin/dumpfs/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= dumpfs +WARNS= 0 MAN= dumpfs.8 .include <bsd.prog.mk> diff --git a/sbin/dumpon/Makefile b/sbin/dumpon/Makefile index d11ccc761127..5a703820812a 100644 --- a/sbin/dumpon/Makefile +++ b/sbin/dumpon/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= dumpon +WARNS= 0 MAN= dumpon.8 .include <bsd.prog.mk> diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile index bcedf0d8d507..ef55d0ac7246 100644 --- a/sbin/fdisk/Makefile +++ b/sbin/fdisk/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= fdisk +WARNS= 0 MAN= fdisk.8 .include <bsd.prog.mk> diff --git a/sbin/fdisk_pc98/Makefile b/sbin/fdisk_pc98/Makefile index 07dc227f7ee6..17859264474c 100644 --- a/sbin/fdisk_pc98/Makefile +++ b/sbin/fdisk_pc98/Makefile @@ -4,5 +4,6 @@ PROG= fdisk MAN= fdisk.8 CFLAGS += -DPC98 +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/ffsinfo/Makefile b/sbin/ffsinfo/Makefile index 6172ab924444..5e6e8ed0ff77 100644 --- a/sbin/ffsinfo/Makefile +++ b/sbin/ffsinfo/Makefile @@ -14,6 +14,8 @@ MAN= ffsinfo.8 GROWFS= ${.CURDIR}/../growfs CFLAGS+=-DFS_DEBUG -I${GROWFS} +WARNS= 0 + .PATH: ${GROWFS} .include <bsd.prog.mk> diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile index 22de03c4da78..a916282d565b 100644 --- a/sbin/fsck/Makefile +++ b/sbin/fsck/Makefile @@ -3,6 +3,7 @@ PROG= fsck SRCS= fsck.c fsutil.c preen.c +WARNS= 0 MAN= fsck.8 .include <bsd.prog.mk> diff --git a/sbin/fsck_ffs/Makefile b/sbin/fsck_ffs/Makefile index de431f0df5f3..94417f9a90e7 100644 --- a/sbin/fsck_ffs/Makefile +++ b/sbin/fsck_ffs/Makefile @@ -7,7 +7,8 @@ LINKS+= ${BINDIR}/fsck_ffs ${BINDIR}/fsck_4.2bsd MAN= fsck_ffs.8 SRCS= dir.c fsutil.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ pass5.c setup.c utilities.c ffs_subr.c ffs_tables.c -CFLAGS+=-W +WARNS= 0 + .PATH: ${.CURDIR}/../../sys/ufs/ffs .include <bsd.prog.mk> diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8 index 2486b49c3b8a..cab040fc5927 100644 --- a/sbin/fsck_ffs/fsck_ffs.8 +++ b/sbin/fsck_ffs/fsck_ffs.8 @@ -296,6 +296,10 @@ If the .Pa lost+found directory does not exist, it is created. If there is insufficient space its size is increased. +.Sh RETURN VALUES +.Nm +returns the value 0 if successful; +otherwise the following values are returned to indicate the error. .Sh FILES .Bl -tag -width /etc/fstab -compact .It Pa /etc/fstab diff --git a/sbin/fsck_ifs/Makefile b/sbin/fsck_ifs/Makefile index 234b54db8668..c16ac80b3089 100644 --- a/sbin/fsck_ifs/Makefile +++ b/sbin/fsck_ifs/Makefile @@ -5,7 +5,8 @@ PROG= fsck_ifs NOMAN= true SRCS= dir.c fsutil.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ pass5.c setup.c utilities.c ffs_subr.c ffs_tables.c -CFLAGS+=-W +WARNS= 0 + .PATH: ${.CURDIR}/../../sys/ufs/ffs .include <bsd.prog.mk> diff --git a/sbin/fsck_msdosfs/Makefile b/sbin/fsck_msdosfs/Makefile index f9dd9fae401b..715afe436af4 100644 --- a/sbin/fsck_msdosfs/Makefile +++ b/sbin/fsck_msdosfs/Makefile @@ -9,5 +9,6 @@ MAN= fsck_msdosfs.8 SRCS= main.c check.c boot.c fat.c dir.c fsutil.c CFLAGS+= -I${FSCK} +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile index 9fc547c9ad02..8f1595c654d2 100644 --- a/sbin/fsdb/Makefile +++ b/sbin/fsdb/Makefile @@ -8,6 +8,7 @@ SRCS= fsdb.c fsdbutil.c \ dir.c fsutil.c inode.c pass1.c pass1b.c pass2.c pass3.c pass4.c \ pass5.c preen.c setup.c utilities.c ffs_subr.c ffs_tables.c CFLAGS+= -I${.CURDIR}/../fsck_ffs +WARNS= 0 LDADD+= -ledit -ltermcap DPADD+= ${LIBEDIT} ${LIBTERMCAP} .PATH: ${.CURDIR}/../fsck_ffs ${.CURDIR}/../../sys/ufs/ffs diff --git a/sbin/fsirand/Makefile b/sbin/fsirand/Makefile index 4b24233bbf19..948ee929c053 100644 --- a/sbin/fsirand/Makefile +++ b/sbin/fsirand/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= fsirand +WARNS= 0 MAN= fsirand.8 DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/sbin/growfs/Makefile b/sbin/growfs/Makefile index 7dba7cbaf51b..5cb76a710930 100644 --- a/sbin/growfs/Makefile +++ b/sbin/growfs/Makefile @@ -17,5 +17,6 @@ MAN= growfs.8 SRCS+= debug.c CFLAGS+=-DFS_DEBUG .endif +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile index 08d130cb873a..73f2f83dec80 100644 --- a/sbin/ifconfig/Makefile +++ b/sbin/ifconfig/Makefile @@ -9,6 +9,7 @@ SRCS+= ifmedia.c CFLAGS+=-DUSE_IF_MEDIA .if !defined(RELEASE_CRUNCH) CFLAGS+=-DINET6 +WARNS= 0 #comment out to exclude SIOC[GS]ETVLAN support SRCS+= ifvlan.c diff --git a/sbin/init/Makefile b/sbin/init/Makefile index 400d62361572..3d60bbe012a1 100644 --- a/sbin/init/Makefile +++ b/sbin/init/Makefile @@ -7,6 +7,7 @@ MLINKS= init.8 securelevel.8 BINMODE=500 INSTALLFLAGS=-fschg -b -B.bak CFLAGS+=-DDEBUGSHELL -DSECURE -DLOGIN_CAP -DCOMPAT_SYSV_INIT +WARNS= 0 DPADD= ${LIBUTIL} ${LIBCRYPT} LDADD= -lutil -lcrypt diff --git a/sbin/ip6fw/Makefile b/sbin/ip6fw/Makefile index d8bda205ada9..8100032dbe1b 100644 --- a/sbin/ip6fw/Makefile +++ b/sbin/ip6fw/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= ip6fw +WARNS= 0 MAN= ip6fw.8 .include <bsd.prog.mk> diff --git a/sbin/ipf/Makefile b/sbin/ipf/Makefile index 23e13be6aac0..7727ea3d3b53 100644 --- a/sbin/ipf/Makefile +++ b/sbin/ipf/Makefile @@ -8,6 +8,7 @@ SRCS= ipf.c parse.c opt.c facpri.c common.c CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter +WARNS= 0 MAINTAINER= guido@freebsd.org diff --git a/sbin/ipfs/Makefile b/sbin/ipfs/Makefile index 48a617b7d6ae..85b81c49c349 100644 --- a/sbin/ipfs/Makefile +++ b/sbin/ipfs/Makefile @@ -8,6 +8,7 @@ SRCS= ipfs.c CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter +WARNS= 0 MAINTAINER= darrenr@freebsd.org diff --git a/sbin/ipfstat/Makefile b/sbin/ipfstat/Makefile index 7e20bc984a7f..3d1731fd38b8 100644 --- a/sbin/ipfstat/Makefile +++ b/sbin/ipfstat/Makefile @@ -9,6 +9,7 @@ CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" -DSTATETOP CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter +WARNS= 0 DPADD= ${LIBNCURSES} LDADD= -lncurses diff --git a/sbin/ipfw/Makefile b/sbin/ipfw/Makefile index 8cf939d8f423..241d304673af 100644 --- a/sbin/ipfw/Makefile +++ b/sbin/ipfw/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= ipfw +WARNS= 0 MAN= ipfw.8 -CFLAGS+=-Wall .include <bsd.prog.mk> diff --git a/sbin/ipmon/Makefile b/sbin/ipmon/Makefile index b4450f7a3047..d900f6754f73 100644 --- a/sbin/ipmon/Makefile +++ b/sbin/ipmon/Makefile @@ -7,6 +7,7 @@ MAN= ipl.4 ipmon.8 SRCS= ipmon.c CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" -I${.CURDIR}/../../contrib/ipfilter +WARNS= 0 MAINTAINER= guido@freebsd.org diff --git a/sbin/ipnat/Makefile b/sbin/ipnat/Makefile index 905091514835..dc386acc78a1 100644 --- a/sbin/ipnat/Makefile +++ b/sbin/ipnat/Makefile @@ -9,6 +9,7 @@ SRCS= ipnat.c kmem.c natparse.c common.c CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter +WARNS= 0 MAINTAINER= guido@freebsd.org diff --git a/sbin/kget/Makefile b/sbin/kget/Makefile index f42176e2a6c2..11c2d6621308 100644 --- a/sbin/kget/Makefile +++ b/sbin/kget/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ # PROG= kget +WARNS= 0 MAN= kget.8 .include <bsd.prog.mk> diff --git a/sbin/kldconfig/Makefile b/sbin/kldconfig/Makefile index 7455af9d318c..a478c4b619d0 100644 --- a/sbin/kldconfig/Makefile +++ b/sbin/kldconfig/Makefile @@ -29,6 +29,4 @@ PROG= kldconfig MAN= kldconfig.8 -WARNS?= 2 - .include <bsd.prog.mk> diff --git a/sbin/kldload/Makefile b/sbin/kldload/Makefile index 6e9e17ddc493..05ad5bab82c0 100644 --- a/sbin/kldload/Makefile +++ b/sbin/kldload/Makefile @@ -27,7 +27,6 @@ # PROG= kldload -WARNS?= 2 MAN= kldload.8 .include <bsd.prog.mk> diff --git a/sbin/kldstat/Makefile b/sbin/kldstat/Makefile index e4145d7c3c41..6380a27d60da 100644 --- a/sbin/kldstat/Makefile +++ b/sbin/kldstat/Makefile @@ -27,6 +27,7 @@ # PROG= kldstat +WARNS= 0 MAN= kldstat.8 .include <bsd.prog.mk> diff --git a/sbin/kldunload/Makefile b/sbin/kldunload/Makefile index 1a25a02351be..555ad6b79383 100644 --- a/sbin/kldunload/Makefile +++ b/sbin/kldunload/Makefile @@ -27,6 +27,7 @@ # PROG= kldunload +WARNS= 0 MAN= kldunload.8 .include <bsd.prog.mk> diff --git a/sbin/ldconfig/Makefile b/sbin/ldconfig/Makefile index 15c3808520ba..776fef457db9 100644 --- a/sbin/ldconfig/Makefile +++ b/sbin/ldconfig/Makefile @@ -4,6 +4,7 @@ PROG= ldconfig SRCS= elfhints.c ldconfig.c shlib.c support.c LDDIR?= ${.CURDIR}/../../libexec/rtld-aout CFLAGS+=-I${LDDIR} -DFREEBSD_AOUT +WARNS= 0 MAN= ldconfig.8 .PATH: ${LDDIR} diff --git a/sbin/md5/Makefile b/sbin/md5/Makefile index 938141e972c1..352212829ddb 100644 --- a/sbin/md5/Makefile +++ b/sbin/md5/Makefile @@ -6,6 +6,4 @@ PROG= md5 LDADD+= -lmd DPADD+= ${LIBMD} -WARNS?= 2 - .include <bsd.prog.mk> diff --git a/sbin/mdconfig/Makefile b/sbin/mdconfig/Makefile index e6f2db46aaaa..3abf56b74a8e 100644 --- a/sbin/mdconfig/Makefile +++ b/sbin/mdconfig/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= mdconfig -WARNS?= 2 MAN= mdconfig.8 MLINKS= mdconfig.8 vnconfig.8 diff --git a/sbin/mdmfs/Makefile b/sbin/mdmfs/Makefile index afa13e84df9a..8b3dacacd842 100644 --- a/sbin/mdmfs/Makefile +++ b/sbin/mdmfs/Makefile @@ -2,6 +2,5 @@ PROG= mdmfs MAN= mdmfs.8 -WARNS?= 2 .include <bsd.prog.mk> diff --git a/sbin/mknod/Makefile b/sbin/mknod/Makefile index 63235b2ce6e4..c83c6bcd0da7 100644 --- a/sbin/mknod/Makefile +++ b/sbin/mknod/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= mknod +WARNS= 0 MAN= mknod.8 .include <bsd.prog.mk> diff --git a/sbin/mount/Makefile b/sbin/mount/Makefile index acdc2b7eb03f..68cf435a3793 100644 --- a/sbin/mount/Makefile +++ b/sbin/mount/Makefile @@ -3,6 +3,7 @@ PROG= mount SRCS= mount.c mount_ufs.c getmntopts.c vfslist.c +WARNS= 0 MAN= mount.8 # We do NOT install the getmntopts.3 man page. diff --git a/sbin/mount_cd9660/Makefile b/sbin/mount_cd9660/Makefile index 7c56886036e0..779b03d6a705 100644 --- a/sbin/mount_cd9660/Makefile +++ b/sbin/mount_cd9660/Makefile @@ -7,6 +7,8 @@ MAN= mount_cd9660.8 MOUNT= ${.CURDIR}/../mount CFLAGS+= -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_ext2fs/Makefile b/sbin/mount_ext2fs/Makefile index 9e0c5d4cf58d..45a29c48e895 100644 --- a/sbin/mount_ext2fs/Makefile +++ b/sbin/mount_ext2fs/Makefile @@ -7,6 +7,8 @@ MAN= mount_ext2fs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+= -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_hpfs/Makefile b/sbin/mount_hpfs/Makefile index c8e0fd229896..12b30c4e8087 100644 --- a/sbin/mount_hpfs/Makefile +++ b/sbin/mount_hpfs/Makefile @@ -8,6 +8,8 @@ MAN= mount_hpfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} -DHPFS +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_ifs/Makefile b/sbin/mount_ifs/Makefile index f615327b9726..d0f566d5358b 100644 --- a/sbin/mount_ifs/Makefile +++ b/sbin/mount_ifs/Makefile @@ -7,6 +7,8 @@ NOMAN= noman MOUNT= ${.CURDIR}/../mount CFLAGS+= -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_msdosfs/Makefile b/sbin/mount_msdosfs/Makefile index d26b501fdea8..25e0a21060b4 100644 --- a/sbin/mount_msdosfs/Makefile +++ b/sbin/mount_msdosfs/Makefile @@ -10,6 +10,8 @@ LDADD= -lutil MOUNT= ${.CURDIR}/../mount CFLAGS+= -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} TABDIR= ${DESTDIR}${LIBDATADIR}/msdosfs diff --git a/sbin/mount_nfs/Makefile b/sbin/mount_nfs/Makefile index f96f27607cec..26f69c8dd9ec 100644 --- a/sbin/mount_nfs/Makefile +++ b/sbin/mount_nfs/Makefile @@ -9,6 +9,8 @@ MAN= mount_nfs.8 MOUNT= ${.CURDIR}/../mount UMNTALL= ${.CURDIR}/../../usr.sbin/rpc.umntall CFLAGS+= -DNFS -I${MOUNT} -I${UMNTALL} +WARNS= 0 + .PATH: ${MOUNT} ${UMNTALL} .include <bsd.prog.mk> diff --git a/sbin/mount_ntfs/Makefile b/sbin/mount_ntfs/Makefile index 369d2555a836..24b6864cff8d 100644 --- a/sbin/mount_ntfs/Makefile +++ b/sbin/mount_ntfs/Makefile @@ -10,6 +10,8 @@ LDADD= -lutil MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_nullfs/Makefile b/sbin/mount_nullfs/Makefile index 0e281d1ebc65..7139b3f9bd1d 100644 --- a/sbin/mount_nullfs/Makefile +++ b/sbin/mount_nullfs/Makefile @@ -7,6 +7,8 @@ MAN= mount_nullfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_nwfs/Makefile b/sbin/mount_nwfs/Makefile index f66b259bf60e..00fed85188b5 100644 --- a/sbin/mount_nwfs/Makefile +++ b/sbin/mount_nwfs/Makefile @@ -6,6 +6,8 @@ MAN= mount_nwfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+= -DNWFS -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} DPADD= ${LIBNCP} ${LIBIPX} diff --git a/sbin/mount_portalfs/Makefile b/sbin/mount_portalfs/Makefile index edf55eeb6e39..90161dc27d5d 100644 --- a/sbin/mount_portalfs/Makefile +++ b/sbin/mount_portalfs/Makefile @@ -8,6 +8,8 @@ MAN= mount_portalfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_std/Makefile b/sbin/mount_std/Makefile index 985f3eec18ae..2b8d62b33f56 100644 --- a/sbin/mount_std/Makefile +++ b/sbin/mount_std/Makefile @@ -11,6 +11,8 @@ MLINKS= mount_std.8 mount_devfs.8 \ MOUNT= ${.CURDIR}/../mount CFLAGS+= -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} LINKS= ${BINDIR}/mount_std ${BINDIR}/mount_devfs \ diff --git a/sbin/mount_umapfs/Makefile b/sbin/mount_umapfs/Makefile index dda3bf7d615a..bb19eaeb3daa 100644 --- a/sbin/mount_umapfs/Makefile +++ b/sbin/mount_umapfs/Makefile @@ -7,6 +7,8 @@ MAN= mount_umapfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mount_unionfs/Makefile b/sbin/mount_unionfs/Makefile index 052327b8b59a..dbe870fa80ec 100644 --- a/sbin/mount_unionfs/Makefile +++ b/sbin/mount_unionfs/Makefile @@ -7,6 +7,8 @@ MAN= mount_unionfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/mountd/Makefile b/sbin/mountd/Makefile index 96ec6b60e2ed..04cd28f0fddc 100644 --- a/sbin/mountd/Makefile +++ b/sbin/mountd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= mountd +WARNS= 0 MAN= exports.5 netgroup.5 mountd.8 .include <bsd.prog.mk> diff --git a/sbin/natd/Makefile b/sbin/natd/Makefile index 0d6bb7b01c13..ba6730e7643e 100644 --- a/sbin/natd/Makefile +++ b/sbin/natd/Makefile @@ -4,7 +4,7 @@ MAINTAINER = ru@FreeBSD.org MAINTAINER += ari@suutari.iki.fi PROG = natd SRCS = natd.c icmp.c -CFLAGS += -Wall +WARNS= 0 LDADD = -lalias DPADD = ${LIBALIAS} MAN = natd.8 diff --git a/sbin/newfs/Makefile b/sbin/newfs/Makefile index 80cb66371d17..5fabadf76d4b 100644 --- a/sbin/newfs/Makefile +++ b/sbin/newfs/Makefile @@ -7,6 +7,8 @@ MAN= newfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-DFSIRAND -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/sbin/newfs_msdos/Makefile b/sbin/newfs_msdos/Makefile index a1555da19063..6667d5f6cc91 100644 --- a/sbin/newfs_msdos/Makefile +++ b/sbin/newfs_msdos/Makefile @@ -6,5 +6,6 @@ MAN= newfs_msdos.8 .if ${MACHINE} == "pc98" CFLAGS+= -DPC98 .endif +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/nextboot/Makefile b/sbin/nextboot/Makefile index 18cfbe14f2ba..cff95d25c568 100644 --- a/sbin/nextboot/Makefile +++ b/sbin/nextboot/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nextboot +WARNS= 0 MAN= nextboot.8 .include <bsd.prog.mk> diff --git a/sbin/nfsd/Makefile b/sbin/nfsd/Makefile index c03b8f52ca17..e43192ac8e25 100644 --- a/sbin/nfsd/Makefile +++ b/sbin/nfsd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nfsd +WARNS= 0 MAN= nfsd.8 .include <bsd.prog.mk> diff --git a/sbin/nfsiod/Makefile b/sbin/nfsiod/Makefile index 7db85b49509b..042eb0c9216e 100644 --- a/sbin/nfsiod/Makefile +++ b/sbin/nfsiod/Makefile @@ -4,5 +4,6 @@ PROG= nfsiod MAN= nfsiod.8 CFLAGS+=-DNFS +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/nos-tun/Makefile b/sbin/nos-tun/Makefile index 82372b378a64..baae98ebb108 100644 --- a/sbin/nos-tun/Makefile +++ b/sbin/nos-tun/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= nos-tun +WARNS= 0 MAN= nos-tun.8 .include <bsd.prog.mk> diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile index a557b371f1c2..ba8fc9b43803 100644 --- a/sbin/ping/Makefile +++ b/sbin/ping/Makefile @@ -5,10 +5,10 @@ PROG= ping MAN= ping.8 BINOWN= root BINMODE=4555 -CFLAGS+=-Wall -Wmissing-prototypes .if ${MACHINE_ARCH} == "alpha" CFLAGS+=-fno-builtin # GCC's builtin memcpy doesn't do unaligned copies .endif +WARNS= 0 DPADD= ${LIBM} LDADD= -lm diff --git a/sbin/ping6/Makefile b/sbin/ping6/Makefile index ddc996282653..c8ba59942586 100644 --- a/sbin/ping6/Makefile +++ b/sbin/ping6/Makefile @@ -4,6 +4,7 @@ PROG= ping6 MAN= ping6.8 CFLAGS+=-DINET6 -DIPSEC +WARNS= 0 BINOWN= root BINMODE=4555 diff --git a/sbin/quotacheck/Makefile b/sbin/quotacheck/Makefile index e0c36e929746..3b04565f132b 100644 --- a/sbin/quotacheck/Makefile +++ b/sbin/quotacheck/Makefile @@ -3,7 +3,9 @@ PROG= quotacheck SRCS= quotacheck.c preen.c utilities.c +WARNS= 0 MAN= quotacheck.8 + .PATH: ${.CURDIR}/../fsck_ffs .include <bsd.prog.mk> diff --git a/sbin/reboot/Makefile b/sbin/reboot/Makefile index ec0f8c603330..2a0e4ac573ee 100644 --- a/sbin/reboot/Makefile +++ b/sbin/reboot/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= reboot -WARNS?= 2 DPADD= ${LIBUTIL} LDADD= -lutil MAN= reboot.8 boot_i386.8 diff --git a/sbin/restore/Makefile b/sbin/restore/Makefile index 7de467311bac..bd84cf584f9f 100644 --- a/sbin/restore/Makefile +++ b/sbin/restore/Makefile @@ -5,6 +5,7 @@ PROG= restore LINKS= ${BINDIR}/restore ${BINDIR}/rrestore CFLAGS+=-DRRESTORE CFLAGS+=-I${.CURDIR}/../../libexec/rlogind +WARNS= 0 SRCS= main.c interactive.c restore.c dirs.c symtab.c tape.c utilities.c \ dumprmt.c MAN= restore.8 diff --git a/sbin/route/Makefile b/sbin/route/Makefile index c4fa18b91271..3705170ec104 100644 --- a/sbin/route/Makefile +++ b/sbin/route/Makefile @@ -6,6 +6,7 @@ MAN= route.8 SRCS= route.c keywords.h CFLAGS+=-I. -Wall -DNS CFLAGS+=-DINET6 +WARNS= 0 CLEANFILES+=keywords.h keywords.h: keywords diff --git a/sbin/routed/Makefile b/sbin/routed/Makefile index d15df541bb85..23e8828d6461 100644 --- a/sbin/routed/Makefile +++ b/sbin/routed/Makefile @@ -9,5 +9,6 @@ SUBDIR= rtquery LDADD+= -lmd DPADD+= ${LIBMD} #COPTS= -g -DDEBUG -W -Wall -Wcast-align -Wcast-qual -Winline -Wpointer-arith -Wnested-externs -Wwrite-strings -Wunused +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/routed/rtquery/Makefile b/sbin/routed/rtquery/Makefile index 5021b086cc50..61a251180041 100644 --- a/sbin/routed/rtquery/Makefile +++ b/sbin/routed/rtquery/Makefile @@ -7,5 +7,6 @@ MAN= rtquery.8 LDADD+= -lmd DPADD+= ${LIBMD} #COPTS= -g -DDEBUG -W -Wall -Wcast-align -Wcast-qual -Winline -Wpointer-arith -Wnested-externs -Wwrite-strings -Wunused +WARNS= 0 .include <bsd.prog.mk> diff --git a/sbin/rtsol/Makefile b/sbin/rtsol/Makefile index f533ed89eea3..4287d9879db0 100644 --- a/sbin/rtsol/Makefile +++ b/sbin/rtsol/Makefile @@ -19,6 +19,7 @@ PROG= rtsol SRCS= rtsold.c rtsol.c if.c probe.c dump.c rtsock.c CFLAGS+=-DINET6 -DHAVE_GETIFADDRS +WARNS= 0 NOMAN= yes diff --git a/sbin/savecore/Makefile b/sbin/savecore/Makefile index e0d1d088db55..322fb7ca97b5 100644 --- a/sbin/savecore/Makefile +++ b/sbin/savecore/Makefile @@ -3,6 +3,7 @@ PROG= savecore SRCS= savecore.c +WARNS= 0 MAN= savecore.8 DPADD+= ${LIBZ} diff --git a/sbin/shutdown/Makefile b/sbin/shutdown/Makefile index 0d6434a22012..e22759fcc401 100644 --- a/sbin/shutdown/Makefile +++ b/sbin/shutdown/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= shutdown -WARNS?= 2 MAN= shutdown.8 BINOWN= root BINGRP= operator diff --git a/sbin/slattach/Makefile b/sbin/slattach/Makefile index 66e810243abf..3060c747b7ba 100644 --- a/sbin/slattach/Makefile +++ b/sbin/slattach/Makefile @@ -3,6 +3,7 @@ # $FreeBSD$ PROG= slattach +WARNS= 0 MAN= slattach.8 MLINKS= slattach.8 slip.8 LDADD= -lutil diff --git a/sbin/spppcontrol/Makefile b/sbin/spppcontrol/Makefile index fa7b90d16501..b394c39a4e83 100644 --- a/sbin/spppcontrol/Makefile +++ b/sbin/spppcontrol/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= spppcontrol -WARNS?= 2 MAN= spppcontrol.8 .include <bsd.prog.mk> diff --git a/sbin/startslip/Makefile b/sbin/startslip/Makefile index 87ad6678c47a..5ac6581b20aa 100644 --- a/sbin/startslip/Makefile +++ b/sbin/startslip/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= startslip +WARNS= 0 DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/sbin/swapon/Makefile b/sbin/swapon/Makefile index d33cd48c2eb6..be803b298a37 100644 --- a/sbin/swapon/Makefile +++ b/sbin/swapon/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= swapon -WARNS?= 2 MAN= swapon.8 .include <bsd.prog.mk> diff --git a/sbin/sysctl/Makefile b/sbin/sysctl/Makefile index 6e525dfa4532..58f3e9bc8129 100644 --- a/sbin/sysctl/Makefile +++ b/sbin/sysctl/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= sysctl +WARNS= 0 MAN= sysctl.8 .include <bsd.prog.mk> diff --git a/sbin/tunefs/Makefile b/sbin/tunefs/Makefile index b9eb1178890d..7944a4cac687 100644 --- a/sbin/tunefs/Makefile +++ b/sbin/tunefs/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= tunefs -WARNS?= 2 MAN= tunefs.8 .include <bsd.prog.mk> diff --git a/sbin/umount/Makefile b/sbin/umount/Makefile index 70313c60bbc9..9e59a3eb17ee 100644 --- a/sbin/umount/Makefile +++ b/sbin/umount/Makefile @@ -4,11 +4,14 @@ PROG= umount SRCS= umount.c vfslist.c mounttab.c +WARNS= 0 MAN= umount.8 MOUNT= ${.CURDIR}/../mount UMNTALL= ${.CURDIR}/../../usr.sbin/rpc.umntall CFLAGS+= -I${MOUNT} -I${UMNTALL} +WARNS= 0 + .PATH: ${MOUNT} ${UMNTALL} .include <bsd.prog.mk> diff --git a/sbin/vinum/Makefile b/sbin/vinum/Makefile index ce9987ce2499..9e4f50ee93b7 100644 --- a/sbin/vinum/Makefile +++ b/sbin/vinum/Makefile @@ -4,7 +4,8 @@ PROG= vinum SRCS= v.c list.c vinumparser.c vinumutil.c vext.h commands.c MAN= vinum.8 -CFLAGS+= -I${.CURDIR}/../../sys -Wall -DVINUMDEBUG +CFLAGS+= -I${.CURDIR}/../../sys -DVINUMDEBUG +WARNS= 0 DPADD= ${LIBREADLINE} ${LIBTERMCAP} ${LIBDEVSTAT} ${LIBKVM} LDADD= -lreadline -ltermcap -ldevstat -lkvm diff --git a/usr.sbin/mount_nwfs/Makefile b/usr.sbin/mount_nwfs/Makefile index f66b259bf60e..00fed85188b5 100644 --- a/usr.sbin/mount_nwfs/Makefile +++ b/usr.sbin/mount_nwfs/Makefile @@ -6,6 +6,8 @@ MAN= mount_nwfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+= -DNWFS -I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} DPADD= ${LIBNCP} ${LIBIPX} diff --git a/usr.sbin/mount_portalfs/Makefile b/usr.sbin/mount_portalfs/Makefile index edf55eeb6e39..90161dc27d5d 100644 --- a/usr.sbin/mount_portalfs/Makefile +++ b/usr.sbin/mount_portalfs/Makefile @@ -8,6 +8,8 @@ MAN= mount_portalfs.8 MOUNT= ${.CURDIR}/../mount CFLAGS+=-I${MOUNT} +WARNS= 0 + .PATH: ${MOUNT} .include <bsd.prog.mk> diff --git a/usr.sbin/mountd/Makefile b/usr.sbin/mountd/Makefile index 96ec6b60e2ed..04cd28f0fddc 100644 --- a/usr.sbin/mountd/Makefile +++ b/usr.sbin/mountd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= mountd +WARNS= 0 MAN= exports.5 netgroup.5 mountd.8 .include <bsd.prog.mk> diff --git a/usr.sbin/nfsd/Makefile b/usr.sbin/nfsd/Makefile index c03b8f52ca17..e43192ac8e25 100644 --- a/usr.sbin/nfsd/Makefile +++ b/usr.sbin/nfsd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nfsd +WARNS= 0 MAN= nfsd.8 .include <bsd.prog.mk> |