From f746689a3f9aed2b2b139b7d7a83e1f01ec68981 Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Fri, 15 May 2009 09:42:48 +0200 Subject: [PATCH] Put WARNS?=6 in usr.sbin/Makefile.inc (like in usr.bin/ etc.). Raise WARNS as high as possible for the utilities that still warn with 6. --- usr.sbin/802_11/Makefile.inc | 2 ++ usr.sbin/IPXrouted/Makefile | 2 ++ usr.sbin/Makefile.inc | 1 + usr.sbin/ac/Makefile | 1 + usr.sbin/accton/Makefile | 1 - usr.sbin/acpi/acpidump/Makefile | 1 - usr.sbin/amd/Makefile.inc | 1 + usr.sbin/ancontrol/Makefile | 2 -- usr.sbin/apm/Makefile | 1 - usr.sbin/apmd/Makefile | 1 + usr.sbin/arp/Makefile | 1 - usr.sbin/asf/Makefile | 1 + usr.sbin/authpf/Makefile | 1 - usr.sbin/battd/Makefile | 1 - usr.sbin/boot0cfg/Makefile | 1 - usr.sbin/btconfig/Makefile | 1 - usr.sbin/bthcid/Makefile | 1 + usr.sbin/burncd/Makefile | 1 + usr.sbin/cdcontrol/Makefile | 1 - usr.sbin/chkgrp/Makefile | 1 - usr.sbin/chown/Makefile | 1 - usr.sbin/chroot/Makefile | 1 - usr.sbin/ckdist/Makefile | 4 ++-- usr.sbin/clog/Makefile | 2 -- usr.sbin/config/Makefile | 1 - usr.sbin/daemon/Makefile | 1 - usr.sbin/dconschat/Makefile | 2 +- usr.sbin/dev_mkdb/Makefile | 1 - usr.sbin/devinfo/Makefile | 2 -- usr.sbin/dntpd/Makefile | 1 - usr.sbin/editmap/Makefile | 1 + usr.sbin/fdcontrol/Makefile | 5 +++-- usr.sbin/fdformat/Makefile | 1 - usr.sbin/fdwrite/Makefile | 2 +- usr.sbin/fwcontrol/Makefile | 1 + usr.sbin/gifconfig/Makefile | 1 + usr.sbin/ifmcstat/Makefile | 1 + usr.sbin/inetd/Makefile | 1 - usr.sbin/iostat/Makefile | 1 - usr.sbin/ipftest/Makefile | 1 + usr.sbin/ipresend/Makefile | 1 + usr.sbin/ipsend/Makefile | 1 + usr.sbin/iptest/Makefile | 1 + usr.sbin/jail/Makefile | 1 - usr.sbin/jexec/Makefile | 1 - usr.sbin/jls/Makefile | 1 - usr.sbin/kbdcontrol/Makefile | 1 + usr.sbin/kbdmap/Makefile | 1 - usr.sbin/kernbb/Makefile | 1 - usr.sbin/kgmon/Makefile | 2 ++ usr.sbin/kgzip/Makefile | 1 - usr.sbin/lastlogin/Makefile | 1 - usr.sbin/lptcontrol/Makefile | 1 - usr.sbin/mailstats/Makefile | 1 + usr.sbin/mailwrapper/Makefile | 1 - usr.sbin/makemap/Makefile | 2 ++ usr.sbin/makewhatis/Makefile | 1 - usr.sbin/memcontrol/Makefile | 1 - usr.sbin/mixer/Makefile | 1 - usr.sbin/mld6query/Makefile | 1 + usr.sbin/mlxcontrol/Makefile | 1 + usr.sbin/moused/Makefile | 1 + usr.sbin/mptable/Makefile | 1 + usr.sbin/mtest/Makefile | 1 + usr.sbin/mtree/Makefile | 1 - usr.sbin/named/Makefile | 1 + usr.sbin/ndiscvt/Makefile | 2 -- usr.sbin/ndp/Makefile | 1 + usr.sbin/newsyslog/Makefile | 1 - usr.sbin/ngctl/Makefile | 1 - usr.sbin/nghook/Makefile | 1 - usr.sbin/nslookup/Makefile | 1 + usr.sbin/pciconf/Makefile | 1 - usr.sbin/pfctl/Makefile | 1 - usr.sbin/pnpinfo/Makefile | 4 ++-- usr.sbin/pppd/Makefile | 1 + usr.sbin/pppstats/Makefile | 1 + usr.sbin/praliases/Makefile | 2 ++ usr.sbin/procctl/Makefile | 1 - usr.sbin/pwd_mkdb/Makefile | 1 - usr.sbin/quot/Makefile | 1 - usr.sbin/quotaon/Makefile | 1 - usr.sbin/rarpd/Makefile | 1 + usr.sbin/rdate/Makefile | 1 - usr.sbin/repquota/Makefile | 1 - usr.sbin/resident/Makefile | 2 -- usr.sbin/rip6query/Makefile | 1 - usr.sbin/rmt/Makefile | 1 + usr.sbin/rndc-confgen/Makefile | 1 + usr.sbin/rndc/Makefile | 1 + usr.sbin/rndcontrol/Makefile | 1 - usr.sbin/route6d/Makefile | 1 + usr.sbin/rpc.statd/Makefile | 1 + usr.sbin/rpc.umntall/Makefile | 1 - usr.sbin/rpc.ypupdated/Makefile | 1 + usr.sbin/rpc.ypxfrd/Makefile | 1 + usr.sbin/rpcbind/Makefile | 1 + usr.sbin/rrenumd/Makefile | 1 + usr.sbin/rtadvd/Makefile | 1 + usr.sbin/rtprio/Makefile | 1 - usr.sbin/rtsold/Makefile | 1 - usr.sbin/rwhod/Makefile | 1 - usr.sbin/sa/Makefile | 1 + usr.sbin/sdpd/Makefile | 1 + usr.sbin/sendmail/Makefile | 1 + usr.sbin/sensorsd/Makefile | 1 + usr.sbin/setkey/Makefile | 1 + usr.sbin/sgsc/Makefile | 1 + usr.sbin/sicontrol/Makefile | 1 - usr.sbin/sliplogin/Makefile | 1 + usr.sbin/slstat/Makefile | 1 + usr.sbin/spray/Makefile | 1 - usr.sbin/stallion/Makefile.inc | 1 + usr.sbin/tcpdchk/Makefile | 1 + usr.sbin/tcpdmatch/Makefile | 1 + usr.sbin/traceroute/Makefile | 4 ---- usr.sbin/traceroute6/Makefile | 1 + usr.sbin/trpt/Makefile | 1 - usr.sbin/tzsetup/Makefile | 1 + usr.sbin/usbd/Makefile | 1 + usr.sbin/usbdevs/Makefile | 1 - usr.sbin/vidcontrol/Makefile | 1 - usr.sbin/vipw/Makefile | 1 + usr.sbin/vknetd/Makefile | 1 + usr.sbin/vnconfig/Makefile | 2 -- usr.sbin/watch/Makefile | 2 -- usr.sbin/xten/Makefile | 1 + usr.sbin/yp_mkdb/Makefile | 1 + usr.sbin/ypbind/Makefile | 1 + usr.sbin/yppoll/Makefile | 1 + usr.sbin/yppush/Makefile | 1 + usr.sbin/ypserv/Makefile | 1 + usr.sbin/ypset/Makefile | 1 + 133 files changed, 80 insertions(+), 80 deletions(-) diff --git a/usr.sbin/802_11/Makefile.inc b/usr.sbin/802_11/Makefile.inc index e7b8609699..5b4af7a2f1 100644 --- a/usr.sbin/802_11/Makefile.inc +++ b/usr.sbin/802_11/Makefile.inc @@ -1,3 +1,5 @@ # $DragonFly: src/usr.sbin/802_11/Makefile.inc,v 1.1 2006/06/24 07:29:44 sephe Exp $ +WARNS?= 0 + .include "../Makefile.inc" diff --git a/usr.sbin/IPXrouted/Makefile b/usr.sbin/IPXrouted/Makefile index 9d977a64e2..d1f64ece9f 100644 --- a/usr.sbin/IPXrouted/Makefile +++ b/usr.sbin/IPXrouted/Makefile @@ -9,4 +9,6 @@ SRCS+= sap_input.c sap_tables.c sap_output.c DPADD= ${LIBCOMPAT} ${LIBIPX} LDADD= -lcompat -lipx +WARNS?= 1 + .include diff --git a/usr.sbin/Makefile.inc b/usr.sbin/Makefile.inc index fd92864744..b0f724d2d6 100644 --- a/usr.sbin/Makefile.inc +++ b/usr.sbin/Makefile.inc @@ -1,3 +1,4 @@ # @(#)Makefile.inc 8.1 (Berkeley) 6/6/93 BINDIR?= /usr/sbin +WARNS?= 6 diff --git a/usr.sbin/ac/Makefile b/usr.sbin/ac/Makefile index fa3b5460a2..9a5e35cfb0 100644 --- a/usr.sbin/ac/Makefile +++ b/usr.sbin/ac/Makefile @@ -3,6 +3,7 @@ PROG= ac MAN= ac.8 +WARNS?= 3 # If "CONSOLE_TTY" is not defined, this program is compatible with the # traditional implementation (using SunOS 4.x as the sample traditional diff --git a/usr.sbin/accton/Makefile b/usr.sbin/accton/Makefile index 330f03d75a..ac78414c3a 100644 --- a/usr.sbin/accton/Makefile +++ b/usr.sbin/accton/Makefile @@ -4,6 +4,5 @@ PROG= accton MAN= accton.8 -WARNS?= 6 .include diff --git a/usr.sbin/acpi/acpidump/Makefile b/usr.sbin/acpi/acpidump/Makefile index 3cf5b509e4..e1a7609439 100644 --- a/usr.sbin/acpi/acpidump/Makefile +++ b/usr.sbin/acpi/acpidump/Makefile @@ -4,6 +4,5 @@ PROG= acpidump MAN= acpidump.8 SRCS= acpi.c acpi_user.c acpidump.c -WARNS?= 6 .include diff --git a/usr.sbin/amd/Makefile.inc b/usr.sbin/amd/Makefile.inc index 42a2ea2948..add2c42b3d 100644 --- a/usr.sbin/amd/Makefile.inc +++ b/usr.sbin/amd/Makefile.inc @@ -31,6 +31,7 @@ RPCCOM= rpcgen MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x +WARNS?= 0 .if exists(${.CURDIR}/../../Makefile.inc) .include "${.CURDIR}/../../Makefile.inc" diff --git a/usr.sbin/ancontrol/Makefile b/usr.sbin/ancontrol/Makefile index fec37afc3e..96bdb5d5f0 100644 --- a/usr.sbin/ancontrol/Makefile +++ b/usr.sbin/ancontrol/Makefile @@ -8,6 +8,4 @@ CFLAGS+= -I${.CURDIR}/../../sys -DANCACHE DPADD= ${LIBMD} LDADD= -lmd -WARNS?= 6 - .include diff --git a/usr.sbin/apm/Makefile b/usr.sbin/apm/Makefile index cd518c3505..08e029c24a 100644 --- a/usr.sbin/apm/Makefile +++ b/usr.sbin/apm/Makefile @@ -6,5 +6,4 @@ LINKS= ${BINDIR}/apm ${BINDIR}/zzz MAN= apm.8 MLINKS= apm.8 apmconf.8 apm.8 zzz.8 -WARNS?= 6 .include diff --git a/usr.sbin/apmd/Makefile b/usr.sbin/apmd/Makefile index c645f12a82..0f18a67b6e 100644 --- a/usr.sbin/apmd/Makefile +++ b/usr.sbin/apmd/Makefile @@ -3,6 +3,7 @@ PROG= apmd SRCS= apmd.c apmdlex.l apmdparse.y y.tab.h +WARNS?= 0 DPADD= ${LIBL} ${LIBUTIL} LDADD= -ll -lutil diff --git a/usr.sbin/arp/Makefile b/usr.sbin/arp/Makefile index 680aba3a8a..199b109295 100644 --- a/usr.sbin/arp/Makefile +++ b/usr.sbin/arp/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/arp/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= arp -WARNS?= 6 MAN= arp.4 arp.8 .include diff --git a/usr.sbin/asf/Makefile b/usr.sbin/asf/Makefile index a03cba35d7..f9f062452f 100644 --- a/usr.sbin/asf/Makefile +++ b/usr.sbin/asf/Makefile @@ -4,5 +4,6 @@ PROG= asf MAN= asf.8 +WARNS?= 2 .include diff --git a/usr.sbin/authpf/Makefile b/usr.sbin/authpf/Makefile index e18e6e395a..7dbe01d289 100644 --- a/usr.sbin/authpf/Makefile +++ b/usr.sbin/authpf/Makefile @@ -9,7 +9,6 @@ BINMODE= 6555 SRCS= authpf.c parse.y pfctl_parser.c pf_print_state.c SRCS+= pfctl_radix.c pfctl_osfp.c SRCS+= pfctl_altq.c -WARNS?= 6 .PATH: ${.CURDIR}/../pfctl CFLAGS+= -I${.CURDIR}/../pfctl diff --git a/usr.sbin/battd/Makefile b/usr.sbin/battd/Makefile index d98157189b..d0a2e68ebf 100644 --- a/usr.sbin/battd/Makefile +++ b/usr.sbin/battd/Makefile @@ -6,6 +6,5 @@ MAN= battd.8 LDADD+= -lutil DPADD+= ${LIBUTIL} -WARNS?= 6 .include diff --git a/usr.sbin/boot0cfg/Makefile b/usr.sbin/boot0cfg/Makefile index 497e87c6d9..4c73efea2a 100644 --- a/usr.sbin/boot0cfg/Makefile +++ b/usr.sbin/boot0cfg/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/boot0cfg/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= boot0cfg -WARNS?= 6 MAN= boot0cfg.8 .include diff --git a/usr.sbin/btconfig/Makefile b/usr.sbin/btconfig/Makefile index ff8fb14232..621b7380ec 100644 --- a/usr.sbin/btconfig/Makefile +++ b/usr.sbin/btconfig/Makefile @@ -8,6 +8,5 @@ MAN = btconfig.8 CFLAGS+= -I${.CURDIR}/../../sys DPADD+= ${LIBBLUETOOTH} LDADD+= -lbluetooth -WARNS?= 6 .include diff --git a/usr.sbin/bthcid/Makefile b/usr.sbin/bthcid/Makefile index fd67c17665..e8140ca9a5 100644 --- a/usr.sbin/bthcid/Makefile +++ b/usr.sbin/bthcid/Makefile @@ -4,6 +4,7 @@ PROG= bthcid MAN= bthcid.8 bthcid.conf.5 SRCS= bthcid.c hci.c client.c config.c lexer.l parser.y +WARNS?= 0 DPADD+= ${LIBBLUETOOTH} ${LIBEVENT} ${LIBUTIL} LDADD+= -lbluetooth -levent -lutil diff --git a/usr.sbin/burncd/Makefile b/usr.sbin/burncd/Makefile index 619628a5c3..1451dfc718 100644 --- a/usr.sbin/burncd/Makefile +++ b/usr.sbin/burncd/Makefile @@ -3,5 +3,6 @@ PROG= burncd MAN= burncd.8 +WARNS?= 2 .include diff --git a/usr.sbin/cdcontrol/Makefile b/usr.sbin/cdcontrol/Makefile index 3e0b3d46f2..9111e38bdd 100644 --- a/usr.sbin/cdcontrol/Makefile +++ b/usr.sbin/cdcontrol/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/cdcontrol/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= cdcontrol -WARNS?= 6 DPADD= ${LIBEDIT} ${LIBTERMCAP} LDADD= -ledit -ltermcap diff --git a/usr.sbin/chkgrp/Makefile b/usr.sbin/chkgrp/Makefile index bb12b31580..475a0e3b17 100644 --- a/usr.sbin/chkgrp/Makefile +++ b/usr.sbin/chkgrp/Makefile @@ -4,5 +4,4 @@ PROG= chkgrp MAN= chkgrp.8 -WARNS?= 6 .include diff --git a/usr.sbin/chown/Makefile b/usr.sbin/chown/Makefile index 02e24e27eb..703e1ac71f 100644 --- a/usr.sbin/chown/Makefile +++ b/usr.sbin/chown/Makefile @@ -7,5 +7,4 @@ CFLAGS+=-DSUPPORT_DOT MAN= chgrp.1 chown.8 LINKS= ${BINDIR}/chown /usr/bin/chgrp -WARNS?= 6 .include diff --git a/usr.sbin/chroot/Makefile b/usr.sbin/chroot/Makefile index 363b4df1cc..e73e42f0e6 100644 --- a/usr.sbin/chroot/Makefile +++ b/usr.sbin/chroot/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/chroot/Makefile,v 1.3 2004/11/28 16:38:21 liamfoy Exp $ PROG= chroot -WARNS?= 6 MAN= chroot.8 .include diff --git a/usr.sbin/ckdist/Makefile b/usr.sbin/ckdist/Makefile index ec034f84cf..726c2b2873 100644 --- a/usr.sbin/ckdist/Makefile +++ b/usr.sbin/ckdist/Makefile @@ -1,11 +1,11 @@ # $FreeBSD: src/usr.sbin/ckdist/Makefile,v 1.2 1999/08/28 01:15:46 peter Exp $ # $DragonFly: src/usr.sbin/ckdist/Makefile,v 1.2 2003/06/17 04:29:52 dillon Exp $ -PROG= ckdist - .PATH: ${.CURDIR}/../../usr.bin/cksum +PROG= ckdist SRCS= ckdist.c crc.c +WARNS?= 3 DPADD= ${LIBMD} LDADD= -lmd diff --git a/usr.sbin/clog/Makefile b/usr.sbin/clog/Makefile index 580810fe6d..9744a5e7b2 100644 --- a/usr.sbin/clog/Makefile +++ b/usr.sbin/clog/Makefile @@ -3,8 +3,6 @@ # $DragonFly: src/usr.sbin/clog/Makefile,v 1.3 2007/04/09 09:45:12 swildner Exp $ PROG= clog -WARNS?= 6 -SRCS= clog.c MAN8= clog.8 .include diff --git a/usr.sbin/config/Makefile b/usr.sbin/config/Makefile index b3b475d52c..5e53eab7b9 100644 --- a/usr.sbin/config/Makefile +++ b/usr.sbin/config/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/config/Makefile,v 1.5 2005/01/12 04:03:46 cpressey Exp $ PROG= config -WARNS?= 6 CFLAGS+=-I. -I${.CURDIR} SRCS= config.y main.c lang.l mkioconf.c mkmakefile.c mkheaders.c \ mkoptions.c y.tab.h diff --git a/usr.sbin/daemon/Makefile b/usr.sbin/daemon/Makefile index 1f54ea2aba..4ad9690f16 100644 --- a/usr.sbin/daemon/Makefile +++ b/usr.sbin/daemon/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/daemon/Makefile,v 1.3 2004/12/21 23:30:57 liamfoy Exp $ PROG= daemon -WARNS?= 6 MAN= daemon.8 .include diff --git a/usr.sbin/dconschat/Makefile b/usr.sbin/dconschat/Makefile index 25aecd87fa..0c4c5f9200 100644 --- a/usr.sbin/dconschat/Makefile +++ b/usr.sbin/dconschat/Makefile @@ -2,8 +2,8 @@ # $DragonFly: src/usr.sbin/dconschat/Makefile,v 1.1 2004/09/23 06:38:29 simokawa Exp $ PROG= dconschat -SRCS= dconschat.c MAN= dconschat.8 +WARNS?= 1 CFLAGS+= -I${.CURDIR}/../../sys diff --git a/usr.sbin/dev_mkdb/Makefile b/usr.sbin/dev_mkdb/Makefile index e93b774c49..d508c966ef 100644 --- a/usr.sbin/dev_mkdb/Makefile +++ b/usr.sbin/dev_mkdb/Makefile @@ -4,6 +4,5 @@ PROG= dev_mkdb MAN= dev_mkdb.8 -WARNS?= 6 .include diff --git a/usr.sbin/devinfo/Makefile b/usr.sbin/devinfo/Makefile index a8931121da..d637de97d4 100644 --- a/usr.sbin/devinfo/Makefile +++ b/usr.sbin/devinfo/Makefile @@ -4,8 +4,6 @@ PROG= devinfo MAN= devinfo.8 -WARNS?= 6 - DPADD= ${LIBDEVINFO} LDADD= -ldevinfo diff --git a/usr.sbin/dntpd/Makefile b/usr.sbin/dntpd/Makefile index 107dfdeef8..72783a5ccc 100644 --- a/usr.sbin/dntpd/Makefile +++ b/usr.sbin/dntpd/Makefile @@ -5,7 +5,6 @@ SRCS= main.c socket.c ntpreq.c convert.c log.c client.c system.c LDADD += -lm -WARNS?= 6 MAN= dntpd.8 .include diff --git a/usr.sbin/editmap/Makefile b/usr.sbin/editmap/Makefile index 94ac430be8..94b7736a90 100644 --- a/usr.sbin/editmap/Makefile +++ b/usr.sbin/editmap/Makefile @@ -7,6 +7,7 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14 PROG= editmap SRCS= editmap.c MAN= editmap.8 +WARNS?= 2 CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNEWDB -DNOT_SENDMAIL diff --git a/usr.sbin/fdcontrol/Makefile b/usr.sbin/fdcontrol/Makefile index 141f30c7f3..a7f058d58e 100644 --- a/usr.sbin/fdcontrol/Makefile +++ b/usr.sbin/fdcontrol/Makefile @@ -1,7 +1,8 @@ # $FreeBSD: src/usr.sbin/fdcontrol/Makefile,v 1.1.1.1.14.1 2001/04/25 12:09:33 ru Exp $ # $DragonFly: src/usr.sbin/fdcontrol/Makefile,v 1.2 2003/06/17 04:29:53 dillon Exp $ -PROG = fdcontrol -MAN = fdcontrol.8 +PROG= fdcontrol +MAN= fdcontrol.8 +WARNS?= 2 .include diff --git a/usr.sbin/fdformat/Makefile b/usr.sbin/fdformat/Makefile index 74f2eb5efd..feeeea5672 100644 --- a/usr.sbin/fdformat/Makefile +++ b/usr.sbin/fdformat/Makefile @@ -2,6 +2,5 @@ # $DragonFly: src/usr.sbin/fdformat/Makefile,v 1.3 2007/10/01 08:25:12 swildner Exp $ PROG= fdformat -WARNS?= 6 .include diff --git a/usr.sbin/fdwrite/Makefile b/usr.sbin/fdwrite/Makefile index 4aa33b3c76..3cdc072a58 100644 --- a/usr.sbin/fdwrite/Makefile +++ b/usr.sbin/fdwrite/Makefile @@ -12,5 +12,5 @@ # PROG= fdwrite -WARNS?= 6 + .include diff --git a/usr.sbin/fwcontrol/Makefile b/usr.sbin/fwcontrol/Makefile index 08a97913b4..f206226bde 100644 --- a/usr.sbin/fwcontrol/Makefile +++ b/usr.sbin/fwcontrol/Makefile @@ -4,6 +4,7 @@ PROG= fwcontrol SRCS= fwcontrol.c fwcrom.c fwdv.c MAN= fwcontrol.8 +WARNS?= 1 .PATH: ${.CURDIR}/../../sys/bus/firewire diff --git a/usr.sbin/gifconfig/Makefile b/usr.sbin/gifconfig/Makefile index 1ae9318db9..b1b2767712 100644 --- a/usr.sbin/gifconfig/Makefile +++ b/usr.sbin/gifconfig/Makefile @@ -16,6 +16,7 @@ PROG= gifconfig MAN= gifconfig.8 +WARNS?= 2 CFLAGS+=-DINET6 diff --git a/usr.sbin/ifmcstat/Makefile b/usr.sbin/ifmcstat/Makefile index 629e55207a..66af8f6fb8 100644 --- a/usr.sbin/ifmcstat/Makefile +++ b/usr.sbin/ifmcstat/Makefile @@ -4,6 +4,7 @@ PROG= ifmcstat MAN= ifmcstat.8 +WARNS?= 1 BINMODE=550 LDADD= -lkvm diff --git a/usr.sbin/inetd/Makefile b/usr.sbin/inetd/Makefile index 7313b6a335..56a491fb69 100644 --- a/usr.sbin/inetd/Makefile +++ b/usr.sbin/inetd/Makefile @@ -6,7 +6,6 @@ PROG= inetd SRCS= inetd.c builtins.c MAN= inetd.8 MLINKS= inetd.8 inetd.conf.5 -WARNS?= 6 CFLAGS+= -DLOGIN_CAP #CFLAGS+= -DSANITY_CHECK diff --git a/usr.sbin/iostat/Makefile b/usr.sbin/iostat/Makefile index ca4a7f1c05..c1190ff338 100644 --- a/usr.sbin/iostat/Makefile +++ b/usr.sbin/iostat/Makefile @@ -7,6 +7,5 @@ MAN= iostat.8 CFLAGS+=-I${.CURDIR}/../../sys DPADD= ${LIBDEVSTAT} ${LIBKINFO} LDADD= -ldevstat -lkinfo -WARNS?= 6 .include diff --git a/usr.sbin/ipftest/Makefile b/usr.sbin/ipftest/Makefile index 9dacbeb5c4..604955da04 100644 --- a/usr.sbin/ipftest/Makefile +++ b/usr.sbin/ipftest/Makefile @@ -9,6 +9,7 @@ SRCS= ipt.c parse.c fil.c ipft_sn.c ipft_ef.c ipft_td.c ipft_pc.c opt.c \ ipft_tx.c misc.c ip_frag.c ip_state.c ip_nat.c ip_proxy.c ip_log.c \ ip_auth.c ipft_hx.c ip_fil.c natparse.c facpri.c common.c \ printstate.c printnat.c +WARNS?= 0 CFLAGS+=-DUSE_INET6 -DIPL_NAME=\"/dev/ipl\" -DIPFILTER_LOG CFLAGS+= -I${.CURDIR}/../../sys/contrib/ipfilter/netinet diff --git a/usr.sbin/ipresend/Makefile b/usr.sbin/ipresend/Makefile index 3d4ec3afa9..95b7d1fb54 100644 --- a/usr.sbin/ipresend/Makefile +++ b/usr.sbin/ipresend/Makefile @@ -6,6 +6,7 @@ PROG= ipresend SRCS= ipresend.c ip.c resend.c opt.c ipft_ef.c ipft_hx.c ipft_sn.c ipft_td.c ipft_tx.c sbpf.c 44arp.c ipft_pc.c +WARNS?= 0 CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" -DUSE_INET6 CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter diff --git a/usr.sbin/ipsend/Makefile b/usr.sbin/ipsend/Makefile index c784d07a00..1263bf5c6b 100644 --- a/usr.sbin/ipsend/Makefile +++ b/usr.sbin/ipsend/Makefile @@ -9,6 +9,7 @@ PROG= ipsend SRCS= ipsend.c ip.c ipsopt.c sbpf.c sock.c 44arp.c iplang_y.y iplang_l.l \ y.tab.h MAN= ipsend.1 ipsend.5 +WARNS?= 1 CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" -DUSE_INET6 CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet diff --git a/usr.sbin/iptest/Makefile b/usr.sbin/iptest/Makefile index 7c1d20e553..0a0408f216 100644 --- a/usr.sbin/iptest/Makefile +++ b/usr.sbin/iptest/Makefile @@ -6,6 +6,7 @@ PROG= iptest SRCS= iptest.c iptests.c ip.c sbpf.c 44arp.c sock.c +WARNS?= 2 CFLAGS+=-DDOSOCKET -DIPL_NAME=\"/dev/ipl\" -DUSE_INET6 CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter/netinet diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index 7c3c84de40..6f568f09b6 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -5,6 +5,5 @@ PROG= jail MAN= jail.8 DPADD= ${LIBUTIL} LDADD= -lutil -WARNS?= 6 .include diff --git a/usr.sbin/jexec/Makefile b/usr.sbin/jexec/Makefile index f89e96ea5d..ff60d77bf3 100644 --- a/usr.sbin/jexec/Makefile +++ b/usr.sbin/jexec/Makefile @@ -3,6 +3,5 @@ PROG= jexec MAN= jexec.8 -WARNS?= 6 .include diff --git a/usr.sbin/jls/Makefile b/usr.sbin/jls/Makefile index c6718a076b..455221911c 100644 --- a/usr.sbin/jls/Makefile +++ b/usr.sbin/jls/Makefile @@ -3,6 +3,5 @@ PROG= jls MAN= jls.8 -WARNS?= 6 .include diff --git a/usr.sbin/kbdcontrol/Makefile b/usr.sbin/kbdcontrol/Makefile index 3c489393a1..f22e83d098 100644 --- a/usr.sbin/kbdcontrol/Makefile +++ b/usr.sbin/kbdcontrol/Makefile @@ -8,5 +8,6 @@ MLINKS= kbdmap.5 keymap.5 CFLAGS+=-I${.CURDIR} DPADD= ${LIBL} LDADD= -ll +WARNS?= 1 .include diff --git a/usr.sbin/kbdmap/Makefile b/usr.sbin/kbdmap/Makefile index 98d4d57ab5..8d4ba1648d 100644 --- a/usr.sbin/kbdmap/Makefile +++ b/usr.sbin/kbdmap/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/kbdmap/Makefile,v 1.5 2005/01/17 01:49:24 cpressey Exp $ PROG= kbdmap -WARNS?= 6 LINKS= ${BINDIR}/kbdmap ${BINDIR}/vidfont MAN= kbdmap.1 MLINKS= kbdmap.1 vidfont.1 diff --git a/usr.sbin/kernbb/Makefile b/usr.sbin/kernbb/Makefile index ae2d212ea5..785329d314 100644 --- a/usr.sbin/kernbb/Makefile +++ b/usr.sbin/kernbb/Makefile @@ -5,7 +5,6 @@ PROG= kernbb MAN= kernbb.8 DPADD= ${LIBKVM} LDADD= -lkvm -WARNS?= 6 .include diff --git a/usr.sbin/kgmon/Makefile b/usr.sbin/kgmon/Makefile index 9d500b5f51..8ca9fa5e85 100644 --- a/usr.sbin/kgmon/Makefile +++ b/usr.sbin/kgmon/Makefile @@ -6,6 +6,8 @@ PROG= kgmon MAN= kgmon.8 DPADD= ${LIBKVM} LDADD= -lkvm +WARNS?= 1 + # # This program may safely be run setuid-root to allow non-root # users to start, stop, and reset profiling buffers. diff --git a/usr.sbin/kgzip/Makefile b/usr.sbin/kgzip/Makefile index 88074af6bb..0e588554e5 100644 --- a/usr.sbin/kgzip/Makefile +++ b/usr.sbin/kgzip/Makefile @@ -4,6 +4,5 @@ PROG= kgzip SRCS= kgzip.c aouthdr.c elfhdr.c kgzcmp.c kgzld.c xio.c MAN= kgzip.8 -WARNS?= 6 .include diff --git a/usr.sbin/lastlogin/Makefile b/usr.sbin/lastlogin/Makefile index 4954ca08f7..3b09b7d039 100644 --- a/usr.sbin/lastlogin/Makefile +++ b/usr.sbin/lastlogin/Makefile @@ -4,5 +4,4 @@ PROG= lastlogin MAN= lastlogin.8 -WARNS?= 6 .include diff --git a/usr.sbin/lptcontrol/Makefile b/usr.sbin/lptcontrol/Makefile index d342aba2f1..2c42934ff2 100644 --- a/usr.sbin/lptcontrol/Makefile +++ b/usr.sbin/lptcontrol/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/lptcontrol/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= lptcontrol -WARNS?= 6 MAN= lptcontrol.8 .include diff --git a/usr.sbin/mailstats/Makefile b/usr.sbin/mailstats/Makefile index 16a0893266..608fee4c6a 100644 --- a/usr.sbin/mailstats/Makefile +++ b/usr.sbin/mailstats/Makefile @@ -8,6 +8,7 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14 PROG= mailstats SRCS= mailstats.c MAN= mailstats.8 +WARNS?= 2 CFLAGS+= -I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNOT_SENDMAIL diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index 4d5300ba49..efe1651e66 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -3,7 +3,6 @@ .if !defined(NO_MAILWRAPPER) PROG= mailwrapper -WARNS?= 6 MAN= mailwrapper.8 DPADD= ${LIBUTIL} diff --git a/usr.sbin/makemap/Makefile b/usr.sbin/makemap/Makefile index 1a39448486..28fc59be97 100644 --- a/usr.sbin/makemap/Makefile +++ b/usr.sbin/makemap/Makefile @@ -8,6 +8,8 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14 PROG= makemap SRCS= makemap.c MAN= makemap.8 +WARNS?= 2 + CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I. CFLAGS+=-DNEWDB -DNOT_SENDMAIL diff --git a/usr.sbin/makewhatis/Makefile b/usr.sbin/makewhatis/Makefile index 5ab1001ea7..847d8416f0 100644 --- a/usr.sbin/makewhatis/Makefile +++ b/usr.sbin/makewhatis/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/makewhatis/Makefile,v 1.2 2005/01/16 04:59:53 cpressey Exp $ PROG= makewhatis -WARNS?= 6 DPADD= ${LIBZ} LDADD= -lz MAN= makewhatis.8 diff --git a/usr.sbin/memcontrol/Makefile b/usr.sbin/memcontrol/Makefile index 8046e0b967..d3b9e1e200 100644 --- a/usr.sbin/memcontrol/Makefile +++ b/usr.sbin/memcontrol/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/memcontrol/Makefile,v 1.3 2005/03/18 01:57:58 cpressey Exp $ PROG= memcontrol -WARNS?= 6 MAN= memcontrol.8 .include diff --git a/usr.sbin/mixer/Makefile b/usr.sbin/mixer/Makefile index 0bded029d1..65faff85c0 100644 --- a/usr.sbin/mixer/Makefile +++ b/usr.sbin/mixer/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/mixer/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= mixer -WARNS?= 6 MAN= mixer.8 .include diff --git a/usr.sbin/mld6query/Makefile b/usr.sbin/mld6query/Makefile index f341d5ba5b..3efdc12dde 100644 --- a/usr.sbin/mld6query/Makefile +++ b/usr.sbin/mld6query/Makefile @@ -18,6 +18,7 @@ PROG= mld6query SRCS= mld6.c MAN= mld6query.8 +WARNS?= 2 CFLAGS+= -DINET6 -DIPSEC diff --git a/usr.sbin/mlxcontrol/Makefile b/usr.sbin/mlxcontrol/Makefile index ec5b994cc5..cd5cff7590 100644 --- a/usr.sbin/mlxcontrol/Makefile +++ b/usr.sbin/mlxcontrol/Makefile @@ -5,6 +5,7 @@ PROG= mlxcontrol SRCS= command.c config.c interface.c util.c MAN= mlxcontrol.8 CFLAGS+= -I${.CURDIR}/../../sys +WARNS?= 2 .include diff --git a/usr.sbin/moused/Makefile b/usr.sbin/moused/Makefile index 311ae5a6ad..4f23ddc607 100644 --- a/usr.sbin/moused/Makefile +++ b/usr.sbin/moused/Makefile @@ -3,6 +3,7 @@ PROG= moused MAN= moused.8 +WARNS?= 2 #BINMODE=4555 #INSTALLFLAGS=-fschg diff --git a/usr.sbin/mptable/Makefile b/usr.sbin/mptable/Makefile index 2556ec36d2..d78e485341 100644 --- a/usr.sbin/mptable/Makefile +++ b/usr.sbin/mptable/Makefile @@ -2,6 +2,7 @@ # $DragonFly: src/usr.sbin/mptable/Makefile,v 1.2 2003/06/17 04:29:57 dillon Exp $ PROG = mptable +WARNS?= 1 BINMODE = 550 diff --git a/usr.sbin/mtest/Makefile b/usr.sbin/mtest/Makefile index 5da103dcb3..6c876a0e52 100644 --- a/usr.sbin/mtest/Makefile +++ b/usr.sbin/mtest/Makefile @@ -3,5 +3,6 @@ PROG= mtest MAN= mtest.8 +WARNS?= 3 .include diff --git a/usr.sbin/mtree/Makefile b/usr.sbin/mtree/Makefile index 819fe39a06..c563c93e9a 100644 --- a/usr.sbin/mtree/Makefile +++ b/usr.sbin/mtree/Makefile @@ -7,7 +7,6 @@ PROG= mtree MAN= mtree.8 SRCS= compare.c crc.c create.c excludes.c misc.c mtree.c spec.c verify.c -WARNS?= 6 .if defined(BOOTSTRAPPING) .PATH: ${.CURDIR}/../../lib/libc/gen diff --git a/usr.sbin/named/Makefile b/usr.sbin/named/Makefile index b253882fe2..6ccddac603 100644 --- a/usr.sbin/named/Makefile +++ b/usr.sbin/named/Makefile @@ -23,6 +23,7 @@ SRCS= aclconf.c builtin.c client.c config.c control.c \ .PATH: ${BIND_DIR}/bin/named/unix SRCS+= os.c +WARNS?= 3 CFLAGS+= -I${BIND_DIR}/bin/named/include \ -I${BIND_DIR}/lib/bind9/include diff --git a/usr.sbin/ndiscvt/Makefile b/usr.sbin/ndiscvt/Makefile index 7a49905e63..88bc93ddd5 100644 --- a/usr.sbin/ndiscvt/Makefile +++ b/usr.sbin/ndiscvt/Makefile @@ -10,8 +10,6 @@ SRCS+= inf.c inf-token.l inf-parse.y y.tab.h MAN8= ndiscvt.8 -WARNS?= 6 - DPADD= ${LIBL} LDADD= -ll diff --git a/usr.sbin/ndp/Makefile b/usr.sbin/ndp/Makefile index 4bd5208771..55d4a55042 100644 --- a/usr.sbin/ndp/Makefile +++ b/usr.sbin/ndp/Makefile @@ -19,6 +19,7 @@ PROG= ndp SRCS= ndp.c gmt2local.c MAN= ndp.8 +WARNS?= 2 CFLAGS+=-DINET6 CFLAGS+=-I. -I${.CURDIR} -I${.CURDIR}/../tcpdump/tcpdump -I${.CURDIR}/../../contrib/tcpdump-3.9 diff --git a/usr.sbin/newsyslog/Makefile b/usr.sbin/newsyslog/Makefile index d5eeef0c23..b1d761f609 100644 --- a/usr.sbin/newsyslog/Makefile +++ b/usr.sbin/newsyslog/Makefile @@ -4,6 +4,5 @@ PROG= newsyslog MAN= newsyslog.8 newsyslog.conf.5 SRCS= newsyslog.c ptimes.c -WARNS?= 6 .include diff --git a/usr.sbin/ngctl/Makefile b/usr.sbin/ngctl/Makefile index 10e8d55a5a..1fab2035e8 100644 --- a/usr.sbin/ngctl/Makefile +++ b/usr.sbin/ngctl/Makefile @@ -8,6 +8,5 @@ SRCS= main.c mkpeer.c config.c connect.c name.c show.c list.c \ MAN= ngctl.8 DPADD+= ${LIBNETGRAPH} LDADD+= -lnetgraph -WARNS?= 6 .include diff --git a/usr.sbin/nghook/Makefile b/usr.sbin/nghook/Makefile index c72b554600..2fdf2523de 100644 --- a/usr.sbin/nghook/Makefile +++ b/usr.sbin/nghook/Makefile @@ -7,6 +7,5 @@ SRCS= main.c MAN= nghook.8 DPADD= ${LIBNETGRAPH} LDADD= -lnetgraph -WARNS?= 6 .include diff --git a/usr.sbin/nslookup/Makefile b/usr.sbin/nslookup/Makefile index 290d3c7f2b..2b5227f18b 100644 --- a/usr.sbin/nslookup/Makefile +++ b/usr.sbin/nslookup/Makefile @@ -12,6 +12,7 @@ USE_LIBISC= yes PROG= nslookup SRCS= nslookup.c dighost.c MAN= +WARNS?= 3 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \ -I${.CURDIR}/../../usr.sbin/named/include \ diff --git a/usr.sbin/pciconf/Makefile b/usr.sbin/pciconf/Makefile index 19045bf13c..5ddb8bcddd 100644 --- a/usr.sbin/pciconf/Makefile +++ b/usr.sbin/pciconf/Makefile @@ -5,6 +5,5 @@ PROG= pciconf MAN= pciconf.8 CFLAGS+= -I${.CURDIR}/../../sys -WARNS?= 6 .include diff --git a/usr.sbin/pfctl/Makefile b/usr.sbin/pfctl/Makefile index b92e0cf724..896d30cd1e 100644 --- a/usr.sbin/pfctl/Makefile +++ b/usr.sbin/pfctl/Makefile @@ -6,7 +6,6 @@ SRCS= pfctl.c parse.y pfctl_parser.c pf_print_state.c pfctl_altq.c SRCS+= pfctl_osfp.c pfctl_radix.c pfctl_table.c pfctl_qstats.c CFLAGS+= -I${.CURDIR} MAN= pfctl.8 pf.conf.5 pf.os.5 -WARNS?= 6 LDADD+= -lmd -lm DPADD+= ${LIBM} diff --git a/usr.sbin/pnpinfo/Makefile b/usr.sbin/pnpinfo/Makefile index 3ff864ab32..fe2dcaca86 100644 --- a/usr.sbin/pnpinfo/Makefile +++ b/usr.sbin/pnpinfo/Makefile @@ -2,10 +2,10 @@ # $DragonFly: src/usr.sbin/pnpinfo/Makefile,v 1.3 2005/02/19 01:44:06 swildner Exp $ PROG= pnpinfo +MAN= pnpinfo.8 +WARNS?= 1 -SRCS= pnpinfo.c CFLAGS+=-I${.CURDIR}/../../sys -MAN= pnpinfo.8 .PATH: ${.CURDIR}/../../contrib/pnpinfo diff --git a/usr.sbin/pppd/Makefile b/usr.sbin/pppd/Makefile index a6d54c8000..a0ea66a12e 100644 --- a/usr.sbin/pppd/Makefile +++ b/usr.sbin/pppd/Makefile @@ -10,6 +10,7 @@ MAN= pppd.8 BINMODE=4550 BINOWN= root BINGRP= dialer +WARNS?= 0 LDADD= -lcrypt -lutil -lmd DPADD= ${LIBCRYPT} ${LIBUTIL} ${LIBMD} diff --git a/usr.sbin/pppstats/Makefile b/usr.sbin/pppstats/Makefile index 2ad52d25ce..97addde96f 100644 --- a/usr.sbin/pppstats/Makefile +++ b/usr.sbin/pppstats/Makefile @@ -3,5 +3,6 @@ PROG= pppstats MAN= pppstats.8 +WARNS?= 3 .include diff --git a/usr.sbin/praliases/Makefile b/usr.sbin/praliases/Makefile index 2bbc8e8b38..d78466406c 100644 --- a/usr.sbin/praliases/Makefile +++ b/usr.sbin/praliases/Makefile @@ -8,6 +8,8 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail-8.14 PROG= praliases SRCS= praliases.c MAN= praliases.8 +WARNS?= 2 + CFLAGS+=-I${SENDMAIL_DIR}/sendmail -I${SENDMAIL_DIR}/include -I. CFLAGS+=-DNEWDB -DNOT_SENDMAIL diff --git a/usr.sbin/procctl/Makefile b/usr.sbin/procctl/Makefile index e6c97a261e..a311714a51 100644 --- a/usr.sbin/procctl/Makefile +++ b/usr.sbin/procctl/Makefile @@ -4,5 +4,4 @@ PROG= procctl MAN= procctl.8 -WARNS?= 6 .include diff --git a/usr.sbin/pwd_mkdb/Makefile b/usr.sbin/pwd_mkdb/Makefile index fe497b83ad..4deae8524e 100644 --- a/usr.sbin/pwd_mkdb/Makefile +++ b/usr.sbin/pwd_mkdb/Makefile @@ -8,7 +8,6 @@ PROG= pwd_mkdb MAN= pwd_mkdb.8 SRCS= pw_scan.c pwd_mkdb.c -WARNS?= 6 CFLAGS+= -I${.CURDIR}/../../lib/libc/gen # for pw_scan.h .include diff --git a/usr.sbin/quot/Makefile b/usr.sbin/quot/Makefile index f9bee5fc5c..6aed712c31 100644 --- a/usr.sbin/quot/Makefile +++ b/usr.sbin/quot/Makefile @@ -2,7 +2,6 @@ # $DragonFly: src/usr.sbin/quot/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= quot -WARNS?= 6 MAN= quot.8 .include diff --git a/usr.sbin/quotaon/Makefile b/usr.sbin/quotaon/Makefile index b530ba8754..3abb5e66b8 100644 --- a/usr.sbin/quotaon/Makefile +++ b/usr.sbin/quotaon/Makefile @@ -6,6 +6,5 @@ PROG= quotaon MAN= quotaon.8 MLINKS= quotaon.8 quotaoff.8 LINKS= ${BINDIR}/quotaon ${BINDIR}/quotaoff -WARNS?= 6 .include diff --git a/usr.sbin/rarpd/Makefile b/usr.sbin/rarpd/Makefile index 7198e92a46..eceb38eac5 100644 --- a/usr.sbin/rarpd/Makefile +++ b/usr.sbin/rarpd/Makefile @@ -4,5 +4,6 @@ PROG= rarpd MAN= rarpd.8 +WARNS?= 2 .include diff --git a/usr.sbin/rdate/Makefile b/usr.sbin/rdate/Makefile index f15c61e5c5..959ec75584 100644 --- a/usr.sbin/rdate/Makefile +++ b/usr.sbin/rdate/Makefile @@ -5,7 +5,6 @@ PROG= rdate SRCS= rdate.c rfc868time.c ntp.c ntpleaps.c DPADD+= ${LIBUTIL} LDADD+= -lutil -WARNS?= 6 MAN= rdate.8 diff --git a/usr.sbin/repquota/Makefile b/usr.sbin/repquota/Makefile index cc8af08e95..233c60a28c 100644 --- a/usr.sbin/repquota/Makefile +++ b/usr.sbin/repquota/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/repquota/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= repquota -WARNS?= 6 MAN= repquota.8 .include diff --git a/usr.sbin/resident/Makefile b/usr.sbin/resident/Makefile index 94ba1304a7..fc1dfe4a59 100644 --- a/usr.sbin/resident/Makefile +++ b/usr.sbin/resident/Makefile @@ -1,8 +1,6 @@ # $DragonFly: src/usr.sbin/resident/Makefile,v 1.2 2005/01/17 01:49:24 cpressey Exp $ PROG= resident -SRCS= resident.c -WARNS?= 6 MAN= resident.8 .include diff --git a/usr.sbin/rip6query/Makefile b/usr.sbin/rip6query/Makefile index 65b888d32a..13da664a71 100644 --- a/usr.sbin/rip6query/Makefile +++ b/usr.sbin/rip6query/Makefile @@ -4,7 +4,6 @@ # $DragonFly: src/usr.sbin/rip6query/Makefile,v 1.3 2005/01/17 01:49:24 cpressey Exp $ PROG= rip6query -WARNS?= 6 MAN= rip6query.8 CFLAGS+=-DINET6 -I${.CURDIR}/../route6d diff --git a/usr.sbin/rmt/Makefile b/usr.sbin/rmt/Makefile index 5fc64be76c..db378e0de9 100644 --- a/usr.sbin/rmt/Makefile +++ b/usr.sbin/rmt/Makefile @@ -4,6 +4,7 @@ PROG= rmt MAN= rmt.8 +WARNS?= 3 # called from /usr/src/etc/Makefile etc-rmt: diff --git a/usr.sbin/rndc-confgen/Makefile b/usr.sbin/rndc-confgen/Makefile index 4a692b7b70..77abe71f13 100644 --- a/usr.sbin/rndc-confgen/Makefile +++ b/usr.sbin/rndc-confgen/Makefile @@ -11,6 +11,7 @@ USE_LIBISC= yes PROG= rndc-confgen SRCS= rndc-confgen.c os.c util.c MAN= rndc-confgen.8 +WARNS?= 3 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \ -I${.CURDIR}/../../usr.sbin/named/include \ diff --git a/usr.sbin/rndc/Makefile b/usr.sbin/rndc/Makefile index 3dba034110..a854df7459 100644 --- a/usr.sbin/rndc/Makefile +++ b/usr.sbin/rndc/Makefile @@ -12,6 +12,7 @@ USE_LIBISC= yes PROG= rndc SRCS= rndc.c os.c util.c MAN= rndc.8 +WARNS?= 2 CFLAGS+= -I${.CURDIR}/../../usr.sbin/named \ -I${.CURDIR}/../../usr.sbin/named/include \ diff --git a/usr.sbin/rndcontrol/Makefile b/usr.sbin/rndcontrol/Makefile index d5001ebbb9..b90727f4d6 100644 --- a/usr.sbin/rndcontrol/Makefile +++ b/usr.sbin/rndcontrol/Makefile @@ -4,6 +4,5 @@ PROG= rndcontrol MAN= random.4 rndcontrol.8 MLINKS+= random.4 urandom.4 -WARNS?= 6 .include diff --git a/usr.sbin/route6d/Makefile b/usr.sbin/route6d/Makefile index 5dcb9c8dc8..542704f485 100644 --- a/usr.sbin/route6d/Makefile +++ b/usr.sbin/route6d/Makefile @@ -4,6 +4,7 @@ PROG= route6d MAN= route6d.8 +WARNS?= 2 CFLAGS+= -Dss_len=__ss_len -Dss_family=__ss_family -DINET6 \ -DHAVE_GETIFADDRS diff --git a/usr.sbin/rpc.statd/Makefile b/usr.sbin/rpc.statd/Makefile index 7e6abe9ce3..b893acd026 100644 --- a/usr.sbin/rpc.statd/Makefile +++ b/usr.sbin/rpc.statd/Makefile @@ -4,6 +4,7 @@ PROG = rpc.statd SRCS = file.c sm_inter_svc.c sm_inter.h statd.c procs.c MAN = rpc.statd.8 +WARNS?= 1 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.sbin/rpc.umntall/Makefile b/usr.sbin/rpc.umntall/Makefile index 10136fe72f..469246e4c4 100644 --- a/usr.sbin/rpc.umntall/Makefile +++ b/usr.sbin/rpc.umntall/Makefile @@ -5,6 +5,5 @@ PROG= rpc.umntall SRCS= rpc.umntall.c mounttab.c MAN= rpc.umntall.8 -WARNS?= 6 .include diff --git a/usr.sbin/rpc.ypupdated/Makefile b/usr.sbin/rpc.ypupdated/Makefile index cbc9c8eff5..643c9a37e8 100644 --- a/usr.sbin/rpc.ypupdated/Makefile +++ b/usr.sbin/rpc.ypupdated/Makefile @@ -8,6 +8,7 @@ NOMAN= SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \ yp_error.c update.c ypupdated_server.c \ yp_dblookup.c yp_dbwrite.c yp_dbdelete.c yp_dbupdate.c +WARNS?= 2 #CFLAGS+= -DYP CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr diff --git a/usr.sbin/rpc.ypxfrd/Makefile b/usr.sbin/rpc.ypxfrd/Makefile index 0245846cb0..141fc03118 100644 --- a/usr.sbin/rpc.ypxfrd/Makefile +++ b/usr.sbin/rpc.ypxfrd/Makefile @@ -4,6 +4,7 @@ PROG= rpc.ypxfrd SRCS= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \ yp_access.c ypxfrd_main.c +WARNS?= 1 RPCDIR= ${.CURDIR}/../../include/rpcsvc diff --git a/usr.sbin/rpcbind/Makefile b/usr.sbin/rpcbind/Makefile index 2b977278ad..618c3ee538 100644 --- a/usr.sbin/rpcbind/Makefile +++ b/usr.sbin/rpcbind/Makefile @@ -6,6 +6,7 @@ PROG= rpcbind MAN= rpcbind.8 SRCS= check_bound.c rpcb_stat.c rpcb_svc_4.c rpcbind.c pmap_svc.c \ rpcb_svc.c rpcb_svc_com.c security.c warmstart.c util.c +WARNS?= 1 CFLAGS+= -DPORTMAP -DLIBWRAP diff --git a/usr.sbin/rrenumd/Makefile b/usr.sbin/rrenumd/Makefile index 82fc34849e..a280019b9f 100644 --- a/usr.sbin/rrenumd/Makefile +++ b/usr.sbin/rrenumd/Makefile @@ -17,6 +17,7 @@ PROG= rrenumd SRCS= rrenumd.c parser.y lexer.l YFLAGS+= -d +WARNS?= 2 CFLAGS+= -DINET6 -DIPSEC -I. -I${.CURDIR} LDADD= -lipsec -lcompat -ll diff --git a/usr.sbin/rtadvd/Makefile b/usr.sbin/rtadvd/Makefile index ecf9e3b3f4..250926e01a 100644 --- a/usr.sbin/rtadvd/Makefile +++ b/usr.sbin/rtadvd/Makefile @@ -16,6 +16,7 @@ PROG= rtadvd SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c dump.c +WARNS?= 1 CFLAGS+=-DINET6 LDADD+= -lcompat diff --git a/usr.sbin/rtprio/Makefile b/usr.sbin/rtprio/Makefile index 54e0370324..e04bd1f00f 100644 --- a/usr.sbin/rtprio/Makefile +++ b/usr.sbin/rtprio/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/rtprio/Makefile,v 1.3 2005/02/04 21:32:55 cpressey Exp $ PROG= rtprio -WARNS?= 6 LINKS= ${BINDIR}/rtprio ${BINDIR}/idprio MLINKS= rtprio.1 idprio.1 diff --git a/usr.sbin/rtsold/Makefile b/usr.sbin/rtsold/Makefile index f0909539d2..d57c41813f 100644 --- a/usr.sbin/rtsold/Makefile +++ b/usr.sbin/rtsold/Makefile @@ -15,7 +15,6 @@ # $DragonFly: src/usr.sbin/rtsold/Makefile,v 1.3 2005/02/15 00:26:00 cpressey Exp $ PROG= rtsold -WARNS?= 6 SRCS= rtsold.c rtsol.c if.c probe.c dump.c rtsock.c CFLAGS+=-DINET6 -DHAVE_GETIFADDRS diff --git a/usr.sbin/rwhod/Makefile b/usr.sbin/rwhod/Makefile index 98dfb421a5..65b7ff4458 100644 --- a/usr.sbin/rwhod/Makefile +++ b/usr.sbin/rwhod/Makefile @@ -4,7 +4,6 @@ PROG= rwhod MAN= rwhod.8 -WARNS?= 6 LDADD+= -lutil DPADD+= ${LIBUTIL} diff --git a/usr.sbin/sa/Makefile b/usr.sbin/sa/Makefile index 78ee72da45..83953bc667 100644 --- a/usr.sbin/sa/Makefile +++ b/usr.sbin/sa/Makefile @@ -4,5 +4,6 @@ PROG= sa MAN= sa.8 SRCS= main.c pdb.c usrdb.c +WARNS?= 1 .include diff --git a/usr.sbin/sdpd/Makefile b/usr.sbin/sdpd/Makefile index a09437ae79..94bc8f7967 100644 --- a/usr.sbin/sdpd/Makefile +++ b/usr.sbin/sdpd/Makefile @@ -6,6 +6,7 @@ MAN= sdpd.8 SRCS= bgd.c dun.c ftrn.c hf.c hset.c irmc.c irmc_command.c lan.c \ log.c main.c opush.c profile.c provider.c sar.c scr.c \ sd.c server.c sp.c srr.c ssar.c ssr.c sur.c uuid.c +WARNS?= 1 CFLAGS+= -I${.CURDIR}/../../sys diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index 0b46f39c8b..b1e291968d 100644 --- a/usr.sbin/sendmail/Makefile +++ b/usr.sbin/sendmail/Makefile @@ -21,6 +21,7 @@ SRCS= alias.c arpadate.c bf.c collect.c conf.c control.c \ ratectrl.c readcf.c recipient.c savemail.c sasl.c sfsasl.c \ shmticklib.c sm_resolve.c srvrsmtp.c stab.c stats.c sysexits.c \ timers.c tls.c trace.c udb.c usersmtp.c util.c version.c ${PATCHES} +WARNS?= 2 BINOWN= root BINGRP= smmsp .ifdef SENDMAIL_SET_USER_ID diff --git a/usr.sbin/sensorsd/Makefile b/usr.sbin/sensorsd/Makefile index 169f80a4f8..0b723df72b 100644 --- a/usr.sbin/sensorsd/Makefile +++ b/usr.sbin/sensorsd/Makefile @@ -3,5 +3,6 @@ PROG= sensorsd MAN= sensorsd.8 sensorsd.conf.5 +WARNS?= 1 .include diff --git a/usr.sbin/setkey/Makefile b/usr.sbin/setkey/Makefile index 6a37f8a3ec..363a7d7660 100644 --- a/usr.sbin/setkey/Makefile +++ b/usr.sbin/setkey/Makefile @@ -35,6 +35,7 @@ DPADD= ${LIBL} LDADD= -ll CLEANFILES+= y.tab.c y.tab.h key_test.o keytest YFLAGS+=-d +WARNS?= 2 # libpfkey. # ipsec_strerror.c is for avoiding shlib reference to non-exported function. diff --git a/usr.sbin/sgsc/Makefile b/usr.sbin/sgsc/Makefile index 5fdc4909f6..ff9acac639 100644 --- a/usr.sbin/sgsc/Makefile +++ b/usr.sbin/sgsc/Makefile @@ -2,5 +2,6 @@ # $DragonFly: src/usr.sbin/sgsc/Makefile,v 1.2 2003/06/17 04:30:03 dillon Exp $ PROG= sgsc +WARNS?= 3 .include diff --git a/usr.sbin/sicontrol/Makefile b/usr.sbin/sicontrol/Makefile index bdac8181ab..b5ed78064b 100644 --- a/usr.sbin/sicontrol/Makefile +++ b/usr.sbin/sicontrol/Makefile @@ -3,7 +3,6 @@ PROG= sicontrol MAN= sicontrol.8 -WARNS?= 6 CFLAGS+= -I${.CURDIR}/../../sys .include diff --git a/usr.sbin/sliplogin/Makefile b/usr.sbin/sliplogin/Makefile index 696c4912d2..a1bb2d76e6 100644 --- a/usr.sbin/sliplogin/Makefile +++ b/usr.sbin/sliplogin/Makefile @@ -9,5 +9,6 @@ BINMODE=4550 .if !defined(NOFSCHG) INSTALLFLAGS=-fschg .endif +WARNS?= 1 .include diff --git a/usr.sbin/slstat/Makefile b/usr.sbin/slstat/Makefile index 03690ad071..3f4c587544 100644 --- a/usr.sbin/slstat/Makefile +++ b/usr.sbin/slstat/Makefile @@ -4,5 +4,6 @@ PROG= slstat MAN= slstat.8 +WARNS?= 2 .include diff --git a/usr.sbin/spray/Makefile b/usr.sbin/spray/Makefile index 1edf12da50..6a20b91ac2 100644 --- a/usr.sbin/spray/Makefile +++ b/usr.sbin/spray/Makefile @@ -6,5 +6,4 @@ MAN= spray.8 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc -WARNS?= 6 .include diff --git a/usr.sbin/stallion/Makefile.inc b/usr.sbin/stallion/Makefile.inc index d99053e01c..3664efa106 100644 --- a/usr.sbin/stallion/Makefile.inc +++ b/usr.sbin/stallion/Makefile.inc @@ -2,6 +2,7 @@ # $DragonFly: src/usr.sbin/stallion/Makefile.inc,v 1.2 2003/06/17 04:30:03 dillon Exp $ BOOTDIR= /usr/libdata/stallion +WARNS?= 1 .if exists(${.CURDIR}/../../Makefile.inc) .include "${.CURDIR}/../../Makefile.inc" diff --git a/usr.sbin/tcpdchk/Makefile b/usr.sbin/tcpdchk/Makefile index 0350bd022b..53198244a2 100644 --- a/usr.sbin/tcpdchk/Makefile +++ b/usr.sbin/tcpdchk/Makefile @@ -6,6 +6,7 @@ PROG= tcpdchk MAN= tcpdchk.8 SRCS= tcpdchk.c fakelog.c inetcf.c scaffold.c +WARNS?= 0 CFLAGS= -DREAL_DAEMON_DIR=\"/usr/libexec\" \ -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 \ diff --git a/usr.sbin/tcpdmatch/Makefile b/usr.sbin/tcpdmatch/Makefile index 4b22e8b7af..c126534fbb 100644 --- a/usr.sbin/tcpdmatch/Makefile +++ b/usr.sbin/tcpdmatch/Makefile @@ -6,6 +6,7 @@ PROG= tcpdmatch MAN= tcpdmatch.8 SRCS= tcpdmatch.c fakelog.c inetcf.c scaffold.c +WARNS?= 0 CFLAGS= -DREAL_DAEMON_DIR=\"/usr/libexec\" \ -DSEVERITY=LOG_INFO -DRFC931_TIMEOUT=10 diff --git a/usr.sbin/traceroute/Makefile b/usr.sbin/traceroute/Makefile index 5518fc7311..f47b5daaf2 100644 --- a/usr.sbin/traceroute/Makefile +++ b/usr.sbin/traceroute/Makefile @@ -5,8 +5,4 @@ PROG= traceroute MAN= traceroute.8 BINMODE=4555 -SRCS= traceroute.c - -WARNS?= 6 - .include diff --git a/usr.sbin/traceroute6/Makefile b/usr.sbin/traceroute6/Makefile index f4e0537eba..0dda497ace 100644 --- a/usr.sbin/traceroute6/Makefile +++ b/usr.sbin/traceroute6/Makefile @@ -18,6 +18,7 @@ PROG= traceroute6 MAN= traceroute6.8 BINOWN= root BINMODE=4555 +WARNS?= 2 CFLAGS+=-DINET6 -DIPSEC -DHAVE_POLL -DUSE_RFC3542 diff --git a/usr.sbin/trpt/Makefile b/usr.sbin/trpt/Makefile index 39e5fb54aa..6fffb0fd21 100644 --- a/usr.sbin/trpt/Makefile +++ b/usr.sbin/trpt/Makefile @@ -7,6 +7,5 @@ MAN= trpt.8 BINGRP= kmem BINMODE=2555 CFLAGS+=-DINET6 -WARNS?= 6 .include diff --git a/usr.sbin/tzsetup/Makefile b/usr.sbin/tzsetup/Makefile index 52e66670f6..76b7b34978 100644 --- a/usr.sbin/tzsetup/Makefile +++ b/usr.sbin/tzsetup/Makefile @@ -6,5 +6,6 @@ MAN= tzsetup.8 CFLAGS+= -I${.CURDIR} LDADD+= -ldialog -lncurses -lmytinfo DPADD+= ${LIBDIALOG} ${LIBNCURSES} ${LIBMYTINFO} +WARNS?= 0 .include diff --git a/usr.sbin/usbd/Makefile b/usr.sbin/usbd/Makefile index 3d56c84d72..da4f16530a 100644 --- a/usr.sbin/usbd/Makefile +++ b/usr.sbin/usbd/Makefile @@ -4,5 +4,6 @@ PROG= usbd MAN= usbd.conf.5 usbd.8 CFLAGS+=-I${.CURDIR}/../../sys +WARNS?= 1 .include diff --git a/usr.sbin/usbdevs/Makefile b/usr.sbin/usbdevs/Makefile index 2eb08372cd..f4ae4f8d7d 100644 --- a/usr.sbin/usbdevs/Makefile +++ b/usr.sbin/usbdevs/Makefile @@ -3,7 +3,6 @@ # $DragonFly: src/usr.sbin/usbdevs/Makefile,v 1.4 2005/01/17 01:49:24 cpressey Exp $ PROG= usbdevs -WARNS?= 6 MAN= usbdevs.8 CFLAGS+=-I${.CURDIR}/../../sys diff --git a/usr.sbin/vidcontrol/Makefile b/usr.sbin/vidcontrol/Makefile index 38756269e0..88d9e1d765 100644 --- a/usr.sbin/vidcontrol/Makefile +++ b/usr.sbin/vidcontrol/Makefile @@ -3,6 +3,5 @@ PROG= vidcontrol SRCS= vidcontrol.c decode.c -WARNS?= 6 .include diff --git a/usr.sbin/vipw/Makefile b/usr.sbin/vipw/Makefile index fe04569f88..11f8164414 100644 --- a/usr.sbin/vipw/Makefile +++ b/usr.sbin/vipw/Makefile @@ -5,5 +5,6 @@ PROG= vipw SRCS= pw_util.c vipw.c MAN= vipw.8 +WARNS?= 2 .include diff --git a/usr.sbin/vknetd/Makefile b/usr.sbin/vknetd/Makefile index b69cb034af..a96c9261e7 100644 --- a/usr.sbin/vknetd/Makefile +++ b/usr.sbin/vknetd/Makefile @@ -5,5 +5,6 @@ PROG= vknetd MAN= vknetd.8 CFLAGS += -DUSE_PTHREADS=1 -pthread SRCS= vknetd.c bridge.c mac.c filter.c +WARNS?= 1 .include diff --git a/usr.sbin/vnconfig/Makefile b/usr.sbin/vnconfig/Makefile index af30a54e56..67c25481cf 100644 --- a/usr.sbin/vnconfig/Makefile +++ b/usr.sbin/vnconfig/Makefile @@ -5,6 +5,4 @@ PROG= vnconfig MAN= vnconfig.8 MLINKS= vnconfig.8 swapfile.8 -WARNS?= 6 - .include diff --git a/usr.sbin/watch/Makefile b/usr.sbin/watch/Makefile index a9787b24d1..297578f82e 100644 --- a/usr.sbin/watch/Makefile +++ b/usr.sbin/watch/Makefile @@ -4,8 +4,6 @@ PROG= watch MAN= watch.8 -WARNS?= 6 - LDADD= -ltermcap DPADD= ${LIBTERMCAP} diff --git a/usr.sbin/xten/Makefile b/usr.sbin/xten/Makefile index 40126754dc..a35f5db59c 100644 --- a/usr.sbin/xten/Makefile +++ b/usr.sbin/xten/Makefile @@ -4,5 +4,6 @@ PROG= xten CFLAGS+= -I${.CURDIR}/../../libexec/xtend +WARNS?= 2 .include diff --git a/usr.sbin/yp_mkdb/Makefile b/usr.sbin/yp_mkdb/Makefile index a30f38075f..74bec589aa 100644 --- a/usr.sbin/yp_mkdb/Makefile +++ b/usr.sbin/yp_mkdb/Makefile @@ -3,6 +3,7 @@ PROG= yp_mkdb SRCS= yp_mkdb.c yp_dblookup.c yp_dbwrite.c +WARNS?= 1 MAN= yp_mkdb.8 diff --git a/usr.sbin/ypbind/Makefile b/usr.sbin/ypbind/Makefile index cdf55e6540..9b1b27673f 100644 --- a/usr.sbin/ypbind/Makefile +++ b/usr.sbin/ypbind/Makefile @@ -6,5 +6,6 @@ SRCS= ypbind.c yp_ping.c PROG= ypbind MAN= ypbind.8 CFLAGS+=-DDAEMON +WARNS?= 2 .include diff --git a/usr.sbin/yppoll/Makefile b/usr.sbin/yppoll/Makefile index 2a72e1d455..eaee0593a2 100644 --- a/usr.sbin/yppoll/Makefile +++ b/usr.sbin/yppoll/Makefile @@ -4,5 +4,6 @@ PROG= yppoll MAN= yppoll.8 +WARNS?= 3 .include diff --git a/usr.sbin/yppush/Makefile b/usr.sbin/yppush/Makefile index 2732488336..88aec973f0 100644 --- a/usr.sbin/yppush/Makefile +++ b/usr.sbin/yppush/Makefile @@ -10,6 +10,7 @@ MAN= yppush.8 SRCS= ypxfr_getmap.c yp_dblookup.c yp_error.c ypxfr_misc.c yppush_main.c \ ${GENSRCS} GENSRCS=yp.h yp_clnt.c yppush_svc.c +WARNS?= 1 CFLAGS+= -I. -I${.CURDIR}/../../libexec/ypxfr diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile index 44cc8b05b2..1e80cd57be 100644 --- a/usr.sbin/ypserv/Makefile +++ b/usr.sbin/ypserv/Makefile @@ -8,6 +8,7 @@ PROG= ypserv MAN= ypserv.8 ypinit.8 SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ ypxfr_clnt.c yp.h yp_main.c yp_error.c yp_access.c yp_svc_udp.c +WARNS?= 1 CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I. diff --git a/usr.sbin/ypset/Makefile b/usr.sbin/ypset/Makefile index 7b20d83a84..825d2ae2da 100644 --- a/usr.sbin/ypset/Makefile +++ b/usr.sbin/ypset/Makefile @@ -4,5 +4,6 @@ PROG= ypset MAN= ypset.8 +WARNS?= 2 .include -- 2.41.0