From 9baf2f1b038483b2b3a06aa8edb82b2d5fe9707a Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 4 Dec 2001 02:19:58 +0000 Subject: Default to WARNS=2. Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike --- sbin/Makefile.inc | 1 + sbin/adjkerntz/Makefile | 1 - sbin/atacontrol/Makefile | 2 ++ sbin/atm/atm/Makefile | 1 + sbin/atm/fore_dnld/Makefile | 1 + sbin/atm/ilmid/Makefile | 1 + sbin/badsect/Makefile | 1 + sbin/bsdlabel/Makefile | 1 + sbin/camcontrol/Makefile | 1 + sbin/ccdconfig/Makefile | 1 + sbin/clri/Makefile | 1 - sbin/comcontrol/Makefile | 1 + sbin/conscontrol/Makefile | 1 - sbin/cxconfig/Makefile | 1 - sbin/dhclient/Makefile | 1 + sbin/disklabel/Makefile | 1 + sbin/dmesg/Makefile | 1 + sbin/dump/Makefile | 1 + sbin/dumpfs/Makefile | 1 + sbin/dumpon/Makefile | 1 + sbin/fdisk/Makefile | 1 + sbin/fdisk_pc98/Makefile | 1 + sbin/ffsinfo/Makefile | 2 ++ sbin/fsck/Makefile | 1 + sbin/fsck_ffs/Makefile | 3 ++- sbin/fsck_ffs/fsck_ffs.8 | 4 ++++ sbin/fsck_ifs/Makefile | 3 ++- sbin/fsck_msdosfs/Makefile | 1 + sbin/fsdb/Makefile | 1 + sbin/fsirand/Makefile | 1 + sbin/growfs/Makefile | 1 + sbin/ifconfig/Makefile | 1 + sbin/init/Makefile | 1 + sbin/ip6fw/Makefile | 1 + sbin/ipf/Makefile | 1 + sbin/ipfs/Makefile | 1 + sbin/ipfstat/Makefile | 1 + sbin/ipfw/Makefile | 2 +- sbin/ipmon/Makefile | 1 + sbin/ipnat/Makefile | 1 + sbin/kget/Makefile | 1 + sbin/kldconfig/Makefile | 2 -- sbin/kldload/Makefile | 1 - sbin/kldstat/Makefile | 1 + sbin/kldunload/Makefile | 1 + sbin/ldconfig/Makefile | 1 + sbin/md5/Makefile | 2 -- sbin/mdconfig/Makefile | 1 - sbin/mdmfs/Makefile | 1 - sbin/mknod/Makefile | 1 + sbin/mount/Makefile | 1 + sbin/mount_cd9660/Makefile | 2 ++ sbin/mount_ext2fs/Makefile | 2 ++ sbin/mount_hpfs/Makefile | 2 ++ sbin/mount_ifs/Makefile | 2 ++ sbin/mount_msdosfs/Makefile | 2 ++ sbin/mount_nfs/Makefile | 2 ++ sbin/mount_ntfs/Makefile | 2 ++ sbin/mount_nullfs/Makefile | 2 ++ sbin/mount_nwfs/Makefile | 2 ++ sbin/mount_portalfs/Makefile | 2 ++ sbin/mount_std/Makefile | 2 ++ sbin/mount_umapfs/Makefile | 2 ++ sbin/mount_unionfs/Makefile | 2 ++ sbin/mountd/Makefile | 1 + sbin/natd/Makefile | 2 +- sbin/newfs/Makefile | 2 ++ sbin/newfs_msdos/Makefile | 1 + sbin/nextboot/Makefile | 1 + sbin/nfsd/Makefile | 1 + sbin/nfsiod/Makefile | 1 + sbin/nos-tun/Makefile | 1 + sbin/ping/Makefile | 2 +- sbin/ping6/Makefile | 1 + sbin/quotacheck/Makefile | 2 ++ sbin/reboot/Makefile | 1 - sbin/restore/Makefile | 1 + sbin/route/Makefile | 1 + sbin/routed/Makefile | 1 + sbin/routed/rtquery/Makefile | 1 + sbin/rtsol/Makefile | 1 + sbin/savecore/Makefile | 1 + sbin/shutdown/Makefile | 1 - sbin/slattach/Makefile | 1 + sbin/spppcontrol/Makefile | 1 - sbin/startslip/Makefile | 1 + sbin/swapon/Makefile | 1 - sbin/sysctl/Makefile | 1 + sbin/tunefs/Makefile | 1 - sbin/umount/Makefile | 3 +++ sbin/vinum/Makefile | 3 ++- usr.sbin/mount_nwfs/Makefile | 2 ++ usr.sbin/mount_portalfs/Makefile | 2 ++ usr.sbin/mountd/Makefile | 1 + usr.sbin/nfsd/Makefile | 1 + 95 files changed, 108 insertions(+), 22 deletions(-) diff --git a/sbin/Makefile.inc b/sbin/Makefile.inc index f870962..885e593 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 d254dcc..27c1289 100644 --- a/sbin/adjkerntz/Makefile +++ b/sbin/adjkerntz/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= adjkerntz -WARNS?= 2 MAN= adjkerntz.8 .include diff --git a/sbin/atacontrol/Makefile b/sbin/atacontrol/Makefile index 717c53d..95c9298 100644 --- a/sbin/atacontrol/Makefile +++ b/sbin/atacontrol/Makefile @@ -1,5 +1,7 @@ #$FreeBSD$ + PROG= atacontrol +WARNS= 0 MAN= atacontrol.8 .include diff --git a/sbin/atm/atm/Makefile b/sbin/atm/atm/Makefile index a3b99d1..1ea91e9 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 576a35bf..b60b981 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 a69f154..75fd798 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 17bcc86..24224f4 100644 --- a/sbin/badsect/Makefile +++ b/sbin/badsect/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= badsect +WARNS= 0 MAN= badsect.8 .include diff --git a/sbin/bsdlabel/Makefile b/sbin/bsdlabel/Makefile index 9884d55..932bcd5 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 diff --git a/sbin/camcontrol/Makefile b/sbin/camcontrol/Makefile index 8b047d3..62588e6 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 ace2477..811a5aa 100644 --- a/sbin/ccdconfig/Makefile +++ b/sbin/ccdconfig/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= ccdconfig +WARNS= 0 MAN= ccdconfig.8 .include diff --git a/sbin/clri/Makefile b/sbin/clri/Makefile index 0e99a4e..c68c312 100644 --- a/sbin/clri/Makefile +++ b/sbin/clri/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= clri -WARNS?= 2 MAN= clri.8 .include diff --git a/sbin/comcontrol/Makefile b/sbin/comcontrol/Makefile index d875756..1fac2b2 100644 --- a/sbin/comcontrol/Makefile +++ b/sbin/comcontrol/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= comcontrol +WARNS= 0 MAN= comcontrol.8 .include diff --git a/sbin/conscontrol/Makefile b/sbin/conscontrol/Makefile index fabb3de..ddd2434 100644 --- a/sbin/conscontrol/Makefile +++ b/sbin/conscontrol/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= conscontrol -WARNS?= 2 MAN= conscontrol.8 .include diff --git a/sbin/cxconfig/Makefile b/sbin/cxconfig/Makefile index 49c493e..e851ec9 100644 --- a/sbin/cxconfig/Makefile +++ b/sbin/cxconfig/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= cxconfig -WARNS?= 2 MAN= cxconfig.8 .include diff --git a/sbin/dhclient/Makefile b/sbin/dhclient/Makefile index 6020616..45c2a0f 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 9884d55..932bcd5 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 diff --git a/sbin/dmesg/Makefile b/sbin/dmesg/Makefile index 7779563..c48be09 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 2df9111..bb47aac 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 e1c5a7f..f26a337 100644 --- a/sbin/dumpfs/Makefile +++ b/sbin/dumpfs/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= dumpfs +WARNS= 0 MAN= dumpfs.8 .include diff --git a/sbin/dumpon/Makefile b/sbin/dumpon/Makefile index d11ccc7..5a70382 100644 --- a/sbin/dumpon/Makefile +++ b/sbin/dumpon/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= dumpon +WARNS= 0 MAN= dumpon.8 .include diff --git a/sbin/fdisk/Makefile b/sbin/fdisk/Makefile index bcedf0d..ef55d0a 100644 --- a/sbin/fdisk/Makefile +++ b/sbin/fdisk/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= fdisk +WARNS= 0 MAN= fdisk.8 .include diff --git a/sbin/fdisk_pc98/Makefile b/sbin/fdisk_pc98/Makefile index 07dc227..1785926 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 diff --git a/sbin/ffsinfo/Makefile b/sbin/ffsinfo/Makefile index 6172ab9..5e6e8ed 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 diff --git a/sbin/fsck/Makefile b/sbin/fsck/Makefile index 22de03c..a916282 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 diff --git a/sbin/fsck_ffs/Makefile b/sbin/fsck_ffs/Makefile index de431f0..94417f9 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 diff --git a/sbin/fsck_ffs/fsck_ffs.8 b/sbin/fsck_ffs/fsck_ffs.8 index 2486b49..cab040f 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 234b54d..c16ac80 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 diff --git a/sbin/fsck_msdosfs/Makefile b/sbin/fsck_msdosfs/Makefile index f9dd9fa..715afe4 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 diff --git a/sbin/fsdb/Makefile b/sbin/fsdb/Makefile index 9fc547c..8f1595c 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 4b24233..948ee92 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 7dba7cb..5cb76a7 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 diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile index 08d130c..73f2f83 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 400d623..3d60bbe 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 d8bda20..8100032 100644 --- a/sbin/ip6fw/Makefile +++ b/sbin/ip6fw/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ PROG= ip6fw +WARNS= 0 MAN= ip6fw.8 .include diff --git a/sbin/ipf/Makefile b/sbin/ipf/Makefile index 23e13be..7727ea3 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 48a617b..85b81c4 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 7e20bc9..3d1731f 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 8cf939d..241d304 100644 --- a/sbin/ipfw/Makefile +++ b/sbin/ipfw/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= ipfw +WARNS= 0 MAN= ipfw.8 -CFLAGS+=-Wall .include diff --git a/sbin/ipmon/Makefile b/sbin/ipmon/Makefile index b4450f7..d900f67 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 9050915..dc386ac 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 f42176e..11c2d66 100644 --- a/sbin/kget/Makefile +++ b/sbin/kget/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ # PROG= kget +WARNS= 0 MAN= kget.8 .include diff --git a/sbin/kldconfig/Makefile b/sbin/kldconfig/Makefile index 7455af9..a478c4b 100644 --- a/sbin/kldconfig/Makefile +++ b/sbin/kldconfig/Makefile @@ -29,6 +29,4 @@ PROG= kldconfig MAN= kldconfig.8 -WARNS?= 2 - .include diff --git a/sbin/kldload/Makefile b/sbin/kldload/Makefile index 6e9e17d..05ad5ba 100644 --- a/sbin/kldload/Makefile +++ b/sbin/kldload/Makefile @@ -27,7 +27,6 @@ # PROG= kldload -WARNS?= 2 MAN= kldload.8 .include diff --git a/sbin/kldstat/Makefile b/sbin/kldstat/Makefile index e4145d7..6380a27 100644 --- a/sbin/kldstat/Makefile +++ b/sbin/kldstat/Makefile @@ -27,6 +27,7 @@ # PROG= kldstat +WARNS= 0 MAN= kldstat.8 .include diff --git a/sbin/kldunload/Makefile b/sbin/kldunload/Makefile index 1a25a02..555ad6b 100644 --- a/sbin/kldunload/Makefile +++ b/sbin/kldunload/Makefile @@ -27,6 +27,7 @@ # PROG= kldunload +WARNS= 0 MAN= kldunload.8 .include diff --git a/sbin/ldconfig/Makefile b/sbin/ldconfig/Makefile index 15c3808..776fef4 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 938141e..3522128 100644 --- a/sbin/md5/Makefile +++ b/sbin/md5/Makefile @@ -6,6 +6,4 @@ PROG= md5 LDADD+= -lmd DPADD+= ${LIBMD} -WARNS?= 2 - .include diff --git a/sbin/mdconfig/Makefile b/sbin/mdconfig/Makefile index e6f2db4..3abf56b 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 afa13e8..8b3daca 100644 --- a/sbin/mdmfs/Makefile +++ b/sbin/mdmfs/Makefile @@ -2,6 +2,5 @@ PROG= mdmfs MAN= mdmfs.8 -WARNS?= 2 .include diff --git a/sbin/mknod/Makefile b/sbin/mknod/Makefile index 63235b2..c83c6bc 100644 --- a/sbin/mknod/Makefile +++ b/sbin/mknod/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= mknod +WARNS= 0 MAN= mknod.8 .include diff --git a/sbin/mount/Makefile b/sbin/mount/Makefile index acdc2b7..68cf435 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 7c56886..779b03d 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 diff --git a/sbin/mount_ext2fs/Makefile b/sbin/mount_ext2fs/Makefile index 9e0c5d4..45a29c4 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 diff --git a/sbin/mount_hpfs/Makefile b/sbin/mount_hpfs/Makefile index c8e0fd2..12b30c4 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 diff --git a/sbin/mount_ifs/Makefile b/sbin/mount_ifs/Makefile index f615327..d0f566d 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 diff --git a/sbin/mount_msdosfs/Makefile b/sbin/mount_msdosfs/Makefile index d26b501..25e0a21 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 f96f276..26f69c8 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 diff --git a/sbin/mount_ntfs/Makefile b/sbin/mount_ntfs/Makefile index 369d255..24b6864 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 diff --git a/sbin/mount_nullfs/Makefile b/sbin/mount_nullfs/Makefile index 0e281d1..7139b3f 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 diff --git a/sbin/mount_nwfs/Makefile b/sbin/mount_nwfs/Makefile index f66b259..00fed85 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 edf55ee..90161dc 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 diff --git a/sbin/mount_std/Makefile b/sbin/mount_std/Makefile index 985f3ee..2b8d62b 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 dda3bf7..bb19eae 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 diff --git a/sbin/mount_unionfs/Makefile b/sbin/mount_unionfs/Makefile index 052327b..dbe870f 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 diff --git a/sbin/mountd/Makefile b/sbin/mountd/Makefile index 96ec6b6..04cd28f 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 diff --git a/sbin/natd/Makefile b/sbin/natd/Makefile index 0d6bb7b..ba6730e 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 80cb663..5fabadf 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 diff --git a/sbin/newfs_msdos/Makefile b/sbin/newfs_msdos/Makefile index a1555da..6667d5f 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 diff --git a/sbin/nextboot/Makefile b/sbin/nextboot/Makefile index 18cfbe1..cff95d2 100644 --- a/sbin/nextboot/Makefile +++ b/sbin/nextboot/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nextboot +WARNS= 0 MAN= nextboot.8 .include diff --git a/sbin/nfsd/Makefile b/sbin/nfsd/Makefile index c03b8f5..e43192a 100644 --- a/sbin/nfsd/Makefile +++ b/sbin/nfsd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nfsd +WARNS= 0 MAN= nfsd.8 .include diff --git a/sbin/nfsiod/Makefile b/sbin/nfsiod/Makefile index 7db85b4..042eb0c 100644 --- a/sbin/nfsiod/Makefile +++ b/sbin/nfsiod/Makefile @@ -4,5 +4,6 @@ PROG= nfsiod MAN= nfsiod.8 CFLAGS+=-DNFS +WARNS= 0 .include diff --git a/sbin/nos-tun/Makefile b/sbin/nos-tun/Makefile index 82372b3..baae98e 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 diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile index a557b37..ba8fc9b 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 ddc9962..c8ba599 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 e0c36e9..3b04565 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 diff --git a/sbin/reboot/Makefile b/sbin/reboot/Makefile index ec0f8c6..2a0e4ac 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 7de4673..bd84cf5 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 c4fa18b..3705170 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 d15df54..23e8828 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 diff --git a/sbin/routed/rtquery/Makefile b/sbin/routed/rtquery/Makefile index 5021b08..61a2511 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 diff --git a/sbin/rtsol/Makefile b/sbin/rtsol/Makefile index f533ed8..4287d98 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 e0d1d08..322fb7c 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 0d6434a..e22759f 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 66e8102..3060c74 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 fa7b90d..b394c39 100644 --- a/sbin/spppcontrol/Makefile +++ b/sbin/spppcontrol/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG= spppcontrol -WARNS?= 2 MAN= spppcontrol.8 .include diff --git a/sbin/startslip/Makefile b/sbin/startslip/Makefile index 87ad667..5ac6581 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 d33cd48..be803b2 100644 --- a/sbin/swapon/Makefile +++ b/sbin/swapon/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= swapon -WARNS?= 2 MAN= swapon.8 .include diff --git a/sbin/sysctl/Makefile b/sbin/sysctl/Makefile index 6e525df..58f3e9b 100644 --- a/sbin/sysctl/Makefile +++ b/sbin/sysctl/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= sysctl +WARNS= 0 MAN= sysctl.8 .include diff --git a/sbin/tunefs/Makefile b/sbin/tunefs/Makefile index b9eb117..7944a4c 100644 --- a/sbin/tunefs/Makefile +++ b/sbin/tunefs/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= tunefs -WARNS?= 2 MAN= tunefs.8 .include diff --git a/sbin/umount/Makefile b/sbin/umount/Makefile index 70313c6..9e59a3e 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 diff --git a/sbin/vinum/Makefile b/sbin/vinum/Makefile index ce9987c..9e4f50e 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 f66b259..00fed85 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 edf55ee..90161dc 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 diff --git a/usr.sbin/mountd/Makefile b/usr.sbin/mountd/Makefile index 96ec6b6..04cd28f 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 diff --git a/usr.sbin/nfsd/Makefile b/usr.sbin/nfsd/Makefile index c03b8f5..e43192a 100644 --- a/usr.sbin/nfsd/Makefile +++ b/usr.sbin/nfsd/Makefile @@ -2,6 +2,7 @@ # $FreeBSD$ PROG= nfsd +WARNS= 0 MAN= nfsd.8 .include -- cgit v1.1