From 073cafdd42b9cd60313d46f72dcb8893ae606832 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 2 Jan 2010 11:07:44 +0000 Subject: The last big commit: let usr.sbin/ use WARNS=6 by default. --- usr.sbin/Makefile.inc | 2 ++ usr.sbin/ac/Makefile | 2 -- usr.sbin/accton/Makefile | 2 -- usr.sbin/acpi/acpiconf/Makefile | 1 - usr.sbin/acpi/acpidump/Makefile | 1 - usr.sbin/acpi/iasl/Makefile | 2 ++ usr.sbin/amd/Makefile.inc | 2 ++ usr.sbin/apm/Makefile | 1 - usr.sbin/apmd/Makefile | 2 ++ usr.sbin/asf/Makefile | 2 -- usr.sbin/audit/Makefile | 2 ++ usr.sbin/auditd/Makefile | 2 ++ usr.sbin/auditreduce/Makefile | 2 ++ usr.sbin/authpf/Makefile | 2 ++ usr.sbin/boot0cfg/Makefile | 2 -- usr.sbin/bootparamd/Makefile.inc | 2 ++ usr.sbin/bsnmpd/bsnmpd/Makefile | 1 - usr.sbin/bsnmpd/gensnmptree/Makefile | 2 ++ usr.sbin/bsnmpd/modules/snmp_pf/Makefile | 1 - usr.sbin/btxld/Makefile | 2 -- usr.sbin/burncd/Makefile | 2 -- usr.sbin/cdcontrol/Makefile | 2 +- usr.sbin/chkgrp/Makefile | 2 -- usr.sbin/chown/Makefile | 2 -- usr.sbin/chroot/Makefile | 2 -- usr.sbin/clear_locks/Makefile | 1 - usr.sbin/config/Makefile | 1 - usr.sbin/cpucontrol/Makefile | 2 -- usr.sbin/cron/cron/Makefile | 2 ++ usr.sbin/crunch/Makefile.inc | 2 ++ usr.sbin/ctm/ctm/Makefile | 2 ++ usr.sbin/ctm/ctm_dequeue/Makefile | 2 ++ usr.sbin/ctm/ctm_rmail/Makefile | 2 ++ usr.sbin/ctm/ctm_smail/Makefile | 2 ++ usr.sbin/daemon/Makefile | 2 -- usr.sbin/dconschat/Makefile | 2 ++ usr.sbin/devinfo/Makefile | 2 -- usr.sbin/digictl/Makefile | 2 -- usr.sbin/diskinfo/Makefile | 2 -- usr.sbin/dnssec-dsfromkey/Makefile | 2 ++ usr.sbin/dnssec-keyfromlabel/Makefile | 2 ++ usr.sbin/dnssec-keygen/Makefile | 2 ++ usr.sbin/dnssec-signzone/Makefile | 2 ++ usr.sbin/dumpcis/Makefile | 1 - usr.sbin/editmap/Makefile | 2 ++ usr.sbin/edquota/Makefile | 2 -- usr.sbin/eeprom/Makefile | 1 - usr.sbin/extattr/Makefile | 2 -- usr.sbin/extattrctl/Makefile | 2 -- usr.sbin/faithd/Makefile | 2 ++ usr.sbin/fdcontrol/Makefile | 1 - usr.sbin/fdformat/Makefile | 1 - usr.sbin/fdread/Makefile | 2 -- usr.sbin/fdwrite/Makefile | 1 - usr.sbin/fifolog/Makefile.inc | 2 -- usr.sbin/ftp-proxy/libevent/Makefile | 2 ++ usr.sbin/getfmac/Makefile | 2 -- usr.sbin/getpmac/Makefile | 2 -- usr.sbin/gstat/Makefile | 1 - usr.sbin/inetd/Makefile | 2 +- usr.sbin/iostat/Makefile | 2 ++ usr.sbin/ip6addrctl/Makefile | 2 ++ usr.sbin/ipfwpcap/Makefile | 2 -- usr.sbin/jail/Makefile | 2 -- usr.sbin/jexec/Makefile | 1 - usr.sbin/jls/Makefile | 2 -- usr.sbin/kernbb/Makefile | 1 - usr.sbin/lastlogin/Makefile | 2 -- usr.sbin/lmcconfig/Makefile | 2 ++ usr.sbin/lpr/common_source/Makefile | 2 ++ usr.sbin/lpr/filters.ru/Makefile.inc | 2 ++ usr.sbin/lpr/lpc/Makefile | 2 ++ usr.sbin/lpr/lpd/Makefile | 2 ++ usr.sbin/lpr/lpr/Makefile | 2 ++ usr.sbin/lptcontrol/Makefile | 2 -- usr.sbin/mailstats/Makefile | 2 ++ usr.sbin/mailwrapper/Makefile | 1 - usr.sbin/makemap/Makefile | 2 ++ usr.sbin/memcontrol/Makefile | 1 - usr.sbin/mixer/Makefile | 2 -- usr.sbin/mld6query/Makefile | 2 ++ usr.sbin/mlxcontrol/Makefile | 2 ++ usr.sbin/mount_smbfs/Makefile | 1 - usr.sbin/moused/Makefile | 2 -- usr.sbin/mptable/Makefile | 1 - usr.sbin/mtree/Makefile | 2 -- usr.sbin/named-checkconf/Makefile | 2 ++ usr.sbin/named-checkzone/Makefile | 2 ++ usr.sbin/named/Makefile | 2 ++ usr.sbin/ndp/Makefile | 2 ++ usr.sbin/newsyslog/Makefile | 2 -- usr.sbin/nfsd/Makefile | 2 -- usr.sbin/nghook/Makefile | 1 - usr.sbin/ntp/Makefile.inc | 2 ++ usr.sbin/nvram/Makefile | 2 -- usr.sbin/ofwdump/Makefile | 2 -- usr.sbin/pciconf/Makefile | 2 ++ usr.sbin/pkg_install/delete/Makefile | 1 - usr.sbin/pkg_install/info/Makefile | 1 - usr.sbin/pkg_install/updating/Makefile | 1 - usr.sbin/pkg_install/version/Makefile | 1 - usr.sbin/pmcannotate/Makefile | 2 -- usr.sbin/pmccontrol/Makefile | 2 -- usr.sbin/pmcstat/Makefile | 2 -- usr.sbin/pnpinfo/Makefile | 2 ++ usr.sbin/portsnap/make_index/Makefile | 1 - usr.sbin/portsnap/phttpget/Makefile | 1 - usr.sbin/powerd/Makefile | 1 - usr.sbin/pppctl/Makefile | 2 ++ usr.sbin/praliases/Makefile | 2 ++ usr.sbin/praudit/Makefile | 2 ++ usr.sbin/procctl/Makefile | 2 -- usr.sbin/pstat/Makefile | 2 -- usr.sbin/pw/Makefile | 2 ++ usr.sbin/pwd_mkdb/Makefile | 1 - usr.sbin/quotaon/Makefile | 2 -- usr.sbin/repquota/Makefile | 2 -- usr.sbin/rip6query/Makefile | 1 - usr.sbin/rmt/Makefile | 2 -- usr.sbin/rndc-confgen/Makefile | 2 ++ usr.sbin/rndc/Makefile | 2 ++ usr.sbin/route6d/Makefile | 2 ++ usr.sbin/rpc.lockd/Makefile | 2 +- usr.sbin/rpc.statd/Makefile | 2 +- usr.sbin/rpc.umntall/Makefile | 2 +- usr.sbin/rpc.yppasswdd/Makefile | 2 +- usr.sbin/rpc.ypupdated/Makefile | 2 ++ usr.sbin/rpc.ypxfrd/Makefile | 2 ++ usr.sbin/rpcbind/Makefile | 2 ++ usr.sbin/rrenumd/Makefile | 2 ++ usr.sbin/rtadvd/Makefile | 2 ++ usr.sbin/rtprio/Makefile | 2 ++ usr.sbin/rtsold/Makefile | 2 ++ usr.sbin/rwhod/Makefile | 3 +-- usr.sbin/sa/Makefile | 2 -- usr.sbin/sendmail/Makefile | 2 ++ usr.sbin/setfmac/Makefile | 2 -- usr.sbin/setpmac/Makefile | 2 -- usr.sbin/smbmsg/Makefile | 1 - usr.sbin/sysinstall/Makefile | 2 ++ usr.sbin/tcpdchk/Makefile | 2 ++ usr.sbin/tcpdmatch/Makefile | 2 ++ usr.sbin/tcpdrop/Makefile | 1 - usr.sbin/tcpdump/Makefile.inc | 2 ++ usr.sbin/traceroute/Makefile | 2 ++ usr.sbin/traceroute6/Makefile | 2 ++ usr.sbin/tzsetup/Makefile | 2 ++ usr.sbin/uathload/Makefile | 2 -- usr.sbin/usbdevs/Makefile | 2 -- usr.sbin/vidcontrol/Makefile | 2 -- usr.sbin/vipw/Makefile | 2 -- usr.sbin/wake/Makefile | 1 - usr.sbin/watchdogd/Makefile | 1 - usr.sbin/wlandebug/Makefile | 2 ++ usr.sbin/wlconfig/Makefile | 2 ++ usr.sbin/yp_mkdb/Makefile | 2 ++ usr.sbin/ypbind/Makefile | 2 ++ usr.sbin/yppoll/Makefile | 2 ++ usr.sbin/yppush/Makefile | 2 ++ usr.sbin/ypserv/Makefile | 2 ++ usr.sbin/ypset/Makefile | 2 ++ usr.sbin/zic/zdump/Makefile | 2 ++ usr.sbin/zic/zic/Makefile | 2 ++ 163 files changed, 157 insertions(+), 137 deletions(-) diff --git a/usr.sbin/Makefile.inc b/usr.sbin/Makefile.inc index 4347591..bd13613 100644 --- a/usr.sbin/Makefile.inc +++ b/usr.sbin/Makefile.inc @@ -2,3 +2,5 @@ # $FreeBSD$ BINDIR?= /usr/sbin + +WARNS?= 6 diff --git a/usr.sbin/ac/Makefile b/usr.sbin/ac/Makefile index c45a0d6..46064fc 100644 --- a/usr.sbin/ac/Makefile +++ b/usr.sbin/ac/Makefile @@ -3,8 +3,6 @@ PROG= ac MAN= ac.8 -WARNS?= 4 - # Temporary, while tracking down problem wrt 64-bit time_t's on sparc64 .if ${MACHINE_ARCH} == "sparc64" CFLAGS+=-DDEBUG diff --git a/usr.sbin/accton/Makefile b/usr.sbin/accton/Makefile index 7ea45a7..ea9b4f4 100644 --- a/usr.sbin/accton/Makefile +++ b/usr.sbin/accton/Makefile @@ -4,6 +4,4 @@ PROG= accton MAN= accton.8 -WARNS?= 4 - .include diff --git a/usr.sbin/acpi/acpiconf/Makefile b/usr.sbin/acpi/acpiconf/Makefile index bb0df4b..5f862a2 100644 --- a/usr.sbin/acpi/acpiconf/Makefile +++ b/usr.sbin/acpi/acpiconf/Makefile @@ -3,6 +3,5 @@ PROG= acpiconf MAN= acpiconf.8 -WARNS?= 6 .include diff --git a/usr.sbin/acpi/acpidump/Makefile b/usr.sbin/acpi/acpidump/Makefile index 21a4140..e004500 100644 --- a/usr.sbin/acpi/acpidump/Makefile +++ b/usr.sbin/acpi/acpidump/Makefile @@ -3,6 +3,5 @@ PROG= acpidump MAN= acpidump.8 SRCS= acpi.c acpi_user.c acpidump.c -WARNS?= 6 .include diff --git a/usr.sbin/acpi/iasl/Makefile b/usr.sbin/acpi/iasl/Makefile index ff6ebd7..130c39e 100644 --- a/usr.sbin/acpi/iasl/Makefile +++ b/usr.sbin/acpi/iasl/Makefile @@ -50,6 +50,8 @@ SRCS+= utalloc.c utcache.c utcopy.c utdebug.c utdelete.c \ utglobal.c utinit.c utlock.c utmath.c utmisc.c \ utmutex.c utobject.c utresrc.c utstate.c utxface.c +WARNS?= 2 + MAN= iasl.8 CFLAGS+= -DACPI_ASL_COMPILER -I. diff --git a/usr.sbin/amd/Makefile.inc b/usr.sbin/amd/Makefile.inc index c8451f6..673edc1 100644 --- a/usr.sbin/amd/Makefile.inc +++ b/usr.sbin/amd/Makefile.inc @@ -40,6 +40,8 @@ RPCCOM= rpcgen MOUNT_X= ${DESTDIR}/usr/include/rpcsvc/mount.x NFS_PROT_X= ${DESTDIR}/usr/include/rpcsvc/nfs_prot.x +WARNS?= 1 + .if exists(${.CURDIR}/../../Makefile.inc) .include "${.CURDIR}/../../Makefile.inc" .endif diff --git a/usr.sbin/apm/Makefile b/usr.sbin/apm/Makefile index f6939e2..08ed25f 100644 --- a/usr.sbin/apm/Makefile +++ b/usr.sbin/apm/Makefile @@ -4,6 +4,5 @@ PROG= apm MAN= apm.8 MLINKS= apm.8 apmconf.8 MANSUBDIR= /${MACHINE_ARCH} -WARNS?= 6 .include diff --git a/usr.sbin/apmd/Makefile b/usr.sbin/apmd/Makefile index 7e81b35..5ccf7e6 100644 --- a/usr.sbin/apmd/Makefile +++ b/usr.sbin/apmd/Makefile @@ -5,6 +5,8 @@ MAN= apmd.8 MANSUBDIR= /i386 SRCS= apmd.c apmdlex.l apmdparse.y y.tab.h +WARNS?= 0 + DPADD= ${LIBL} LDADD= -ll diff --git a/usr.sbin/asf/Makefile b/usr.sbin/asf/Makefile index b4b7af3..0db69e8 100644 --- a/usr.sbin/asf/Makefile +++ b/usr.sbin/asf/Makefile @@ -7,6 +7,4 @@ MAN= asf.8 DPADD= ${LIBKVM} LDADD= -lkvm -WARNS?= 4 - .include diff --git a/usr.sbin/audit/Makefile b/usr.sbin/audit/Makefile index 9f31741..a3f7fbf 100644 --- a/usr.sbin/audit/Makefile +++ b/usr.sbin/audit/Makefile @@ -13,4 +13,6 @@ MAN= audit.8 DPADD= ${LIBBSM} LDADD= -lbsm +WARNS?= 5 + .include diff --git a/usr.sbin/auditd/Makefile b/usr.sbin/auditd/Makefile index 839458d..201f961 100644 --- a/usr.sbin/auditd/Makefile +++ b/usr.sbin/auditd/Makefile @@ -14,4 +14,6 @@ MAN= auditd.8 DPADD= ${LIBBSM} ${LIBAUDITD} LDADD= -lbsm -lauditd +WARNS?= 3 + .include diff --git a/usr.sbin/auditreduce/Makefile b/usr.sbin/auditreduce/Makefile index 73b355d..7dc9553 100644 --- a/usr.sbin/auditreduce/Makefile +++ b/usr.sbin/auditreduce/Makefile @@ -13,4 +13,6 @@ MAN= auditreduce.1 DPADD= ${LIBBSM} LDADD= -lbsm +WARNS?= 3 + .include diff --git a/usr.sbin/authpf/Makefile b/usr.sbin/authpf/Makefile index b4c9b4f..0a24b8e 100644 --- a/usr.sbin/authpf/Makefile +++ b/usr.sbin/authpf/Makefile @@ -19,4 +19,6 @@ CFLAGS+= -DENABLE_ALTQ LDADD+= -lm -lmd -lutil DPADD+= ${LIBM} ${LIBMD} ${LIBUTIL} +WARNS?= 3 + .include diff --git a/usr.sbin/boot0cfg/Makefile b/usr.sbin/boot0cfg/Makefile index dc02cad..79e7cd2 100644 --- a/usr.sbin/boot0cfg/Makefile +++ b/usr.sbin/boot0cfg/Makefile @@ -3,8 +3,6 @@ PROG= boot0cfg MAN= boot0cfg.8 -WARNS?= 2 - DPADD= ${LIBGEOM} LDADD= -lgeom diff --git a/usr.sbin/bootparamd/Makefile.inc b/usr.sbin/bootparamd/Makefile.inc index 1e4d46f..5c01215 100644 --- a/usr.sbin/bootparamd/Makefile.inc +++ b/usr.sbin/bootparamd/Makefile.inc @@ -2,3 +2,5 @@ # $FreeBSD$ BINDIR?= /usr/sbin + +WARNS?= 2 diff --git a/usr.sbin/bsnmpd/bsnmpd/Makefile b/usr.sbin/bsnmpd/bsnmpd/Makefile index 9fbf366..e74f675 100644 --- a/usr.sbin/bsnmpd/bsnmpd/Makefile +++ b/usr.sbin/bsnmpd/bsnmpd/Makefile @@ -14,7 +14,6 @@ XSYM= snmpMIB begemotSnmpdModuleTable begemotSnmpd begemotTrapSinkTable \ freeBSDVersion CLEANFILES= oid.h tree.c tree.h MAN= bsnmpd.1 snmpmod.3 -WARNS?= 6 NO_WERROR= FILESGROUPS= BMIBS DEFS diff --git a/usr.sbin/bsnmpd/gensnmptree/Makefile b/usr.sbin/bsnmpd/gensnmptree/Makefile index 11c6a3b..a92f4eb 100644 --- a/usr.sbin/bsnmpd/gensnmptree/Makefile +++ b/usr.sbin/bsnmpd/gensnmptree/Makefile @@ -10,4 +10,6 @@ CFLAGS+= -I${CONTRIB}/lib CFLAGS+= -DQUADFMT='"llu"' -DQUADXFMT='"llx"' -DHAVE_STDINT_H CFLAGS+= -DHAVE_INTTYPES_H +WARNS?= 5 + .include diff --git a/usr.sbin/bsnmpd/modules/snmp_pf/Makefile b/usr.sbin/bsnmpd/modules/snmp_pf/Makefile index 7472464..92b0a4ba 100644 --- a/usr.sbin/bsnmpd/modules/snmp_pf/Makefile +++ b/usr.sbin/bsnmpd/modules/snmp_pf/Makefile @@ -4,7 +4,6 @@ MOD= pf SRCS= pf_snmp.c -WARNS?= 6 XSYM= begemotPf DEFS= ${MOD}_tree.def diff --git a/usr.sbin/btxld/Makefile b/usr.sbin/btxld/Makefile index 6ca452e..32cf99d 100644 --- a/usr.sbin/btxld/Makefile +++ b/usr.sbin/btxld/Makefile @@ -4,6 +4,4 @@ PROG= btxld MAN= btxld.8 SRCS= btxld.c elfh.c -WARNS?= 6 - .include diff --git a/usr.sbin/burncd/Makefile b/usr.sbin/burncd/Makefile index bd4f285..11e07c7 100644 --- a/usr.sbin/burncd/Makefile +++ b/usr.sbin/burncd/Makefile @@ -3,6 +3,4 @@ PROG= burncd MAN= burncd.8 -WARNS?= 6 - .include diff --git a/usr.sbin/cdcontrol/Makefile b/usr.sbin/cdcontrol/Makefile index 40addad..fc78e00 100644 --- a/usr.sbin/cdcontrol/Makefile +++ b/usr.sbin/cdcontrol/Makefile @@ -2,7 +2,7 @@ PROG= cdcontrol -WARNS?= 2 +WARNS?= 3 DPADD= ${LIBEDIT} ${LIBTERMCAP} LDADD= -ledit -ltermcap diff --git a/usr.sbin/chkgrp/Makefile b/usr.sbin/chkgrp/Makefile index 1c52f46..a7bfc54 100644 --- a/usr.sbin/chkgrp/Makefile +++ b/usr.sbin/chkgrp/Makefile @@ -3,6 +3,4 @@ PROG= chkgrp MAN= chkgrp.8 -WARNS?= 2 - .include diff --git a/usr.sbin/chown/Makefile b/usr.sbin/chown/Makefile index 63c5a22..97972e5 100644 --- a/usr.sbin/chown/Makefile +++ b/usr.sbin/chown/Makefile @@ -5,6 +5,4 @@ PROG= chown LINKS= ${BINDIR}/chown /usr/bin/chgrp MAN= chgrp.1 chown.8 -WARNS?= 5 - .include diff --git a/usr.sbin/chroot/Makefile b/usr.sbin/chroot/Makefile index d28de66..652de79 100644 --- a/usr.sbin/chroot/Makefile +++ b/usr.sbin/chroot/Makefile @@ -4,6 +4,4 @@ PROG= chroot MAN= chroot.8 -WARNS?= 2 - .include diff --git a/usr.sbin/clear_locks/Makefile b/usr.sbin/clear_locks/Makefile index dace0e1..00ff3ce 100644 --- a/usr.sbin/clear_locks/Makefile +++ b/usr.sbin/clear_locks/Makefile @@ -4,6 +4,5 @@ PROG= clear_locks MAN= clear_locks.8 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc -WARNS= 6 .include diff --git a/usr.sbin/config/Makefile b/usr.sbin/config/Makefile index ac82881..6faf847 100644 --- a/usr.sbin/config/Makefile +++ b/usr.sbin/config/Makefile @@ -9,7 +9,6 @@ SRCS= config.y main.c lang.l mkmakefile.c mkheaders.c \ kernconf.c: kernconf.tmpl file2c 'char kernconfstr[] = {' ',0};' < ${.CURDIR}/kernconf.tmpl > kernconf.c -WARNS?= 6 CFLAGS+= -I. -I${.CURDIR} DPADD= ${LIBL} ${LIBSBUF} diff --git a/usr.sbin/cpucontrol/Makefile b/usr.sbin/cpucontrol/Makefile index 00e7214..a048dd7 100644 --- a/usr.sbin/cpucontrol/Makefile +++ b/usr.sbin/cpucontrol/Makefile @@ -4,6 +4,4 @@ PROG= cpucontrol MAN= cpucontrol.8 SRCS= cpucontrol.c intel.c amd.c -WARNS?= 6 - .include diff --git a/usr.sbin/cron/cron/Makefile b/usr.sbin/cron/cron/Makefile index 77ca47a..d9a1d24 100644 --- a/usr.sbin/cron/cron/Makefile +++ b/usr.sbin/cron/cron/Makefile @@ -9,4 +9,6 @@ CFLAGS+= -DLOGIN_CAP -DPAM DPADD= ${LIBCRON} ${LIBPAM} ${LIBUTIL} LDADD= ${LIBCRON} ${MINUSLPAM} -lutil +WARNS?= 2 + .include diff --git a/usr.sbin/crunch/Makefile.inc b/usr.sbin/crunch/Makefile.inc index f8ffe67..36175b7 100644 --- a/usr.sbin/crunch/Makefile.inc +++ b/usr.sbin/crunch/Makefile.inc @@ -2,3 +2,5 @@ # modify to taste BINDIR?= /usr/bin + +WARNS?= 2 diff --git a/usr.sbin/ctm/ctm/Makefile b/usr.sbin/ctm/ctm/Makefile index c0cf79a..cc2c9b9 100644 --- a/usr.sbin/ctm/ctm/Makefile +++ b/usr.sbin/ctm/ctm/Makefile @@ -17,6 +17,8 @@ NOTYET= ctm_ed.c LDADD= -lmd DPADD= ${LIBMD} +WARNS?= 2 + .if exists(${.CURDIR}/../../Makefile.inc) .include "${.CURDIR}/../../Makefile.inc" .endif diff --git a/usr.sbin/ctm/ctm_dequeue/Makefile b/usr.sbin/ctm/ctm_dequeue/Makefile index 07a234f..18dd525 100644 --- a/usr.sbin/ctm/ctm_dequeue/Makefile +++ b/usr.sbin/ctm/ctm_dequeue/Makefile @@ -8,4 +8,6 @@ SRCS= ctm_dequeue.c error.c CFLAGS+= -I${.CURDIR}/../ctm_rmail +WARNS?= 1 + .include diff --git a/usr.sbin/ctm/ctm_rmail/Makefile b/usr.sbin/ctm/ctm_rmail/Makefile index e2052b9..1278ab4 100644 --- a/usr.sbin/ctm/ctm_rmail/Makefile +++ b/usr.sbin/ctm/ctm_rmail/Makefile @@ -5,4 +5,6 @@ MLINKS= ctm_rmail.1 ctm_smail.1 \ ctm_rmail.1 ctm_dequeue.1 SRCS= ctm_rmail.c error.c +WARNS?= 2 + .include diff --git a/usr.sbin/ctm/ctm_smail/Makefile b/usr.sbin/ctm/ctm_smail/Makefile index 980e9bf..15209e4 100644 --- a/usr.sbin/ctm/ctm_smail/Makefile +++ b/usr.sbin/ctm/ctm_smail/Makefile @@ -8,4 +8,6 @@ SRCS= ctm_smail.c error.c CFLAGS+= -I${.CURDIR}/../ctm_rmail +WARNS?= 2 + .include diff --git a/usr.sbin/daemon/Makefile b/usr.sbin/daemon/Makefile index 3ca3e91..2def803 100644 --- a/usr.sbin/daemon/Makefile +++ b/usr.sbin/daemon/Makefile @@ -6,6 +6,4 @@ MAN= daemon.8 DPADD= ${LIBUTIL} LDADD= -lutil -WARNS?= 2 - .include diff --git a/usr.sbin/dconschat/Makefile b/usr.sbin/dconschat/Makefile index 47efe52..2836a66 100644 --- a/usr.sbin/dconschat/Makefile +++ b/usr.sbin/dconschat/Makefile @@ -8,4 +8,6 @@ CFLAGS+= -I${.CURDIR}/../../sys DPADD= ${LIBKVM} LDADD= -lkvm +WARNS?= 1 + .include diff --git a/usr.sbin/devinfo/Makefile b/usr.sbin/devinfo/Makefile index 52e4d6d..2a2301b 100644 --- a/usr.sbin/devinfo/Makefile +++ b/usr.sbin/devinfo/Makefile @@ -3,8 +3,6 @@ PROG= devinfo MAN= devinfo.8 -WARNS?= 2 - DPADD= ${LIBDEVINFO} LDADD= -ldevinfo diff --git a/usr.sbin/digictl/Makefile b/usr.sbin/digictl/Makefile index 029dfee..cb3745b 100644 --- a/usr.sbin/digictl/Makefile +++ b/usr.sbin/digictl/Makefile @@ -3,6 +3,4 @@ PROG= digictl MAN= digictl.8 -WARNS?= 2 - .include diff --git a/usr.sbin/diskinfo/Makefile b/usr.sbin/diskinfo/Makefile index 5ffa27f6..b16b933 100644 --- a/usr.sbin/diskinfo/Makefile +++ b/usr.sbin/diskinfo/Makefile @@ -3,8 +3,6 @@ PROG= diskinfo MAN= diskinfo.8 -WARNS?= 5 - DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/usr.sbin/dnssec-dsfromkey/Makefile b/usr.sbin/dnssec-dsfromkey/Makefile index ee7c75e..0b57eb5 100644 --- a/usr.sbin/dnssec-dsfromkey/Makefile +++ b/usr.sbin/dnssec-dsfromkey/Makefile @@ -17,6 +17,8 @@ CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 3 + MAN= dnssec-dsfromkey.8 .include diff --git a/usr.sbin/dnssec-keyfromlabel/Makefile b/usr.sbin/dnssec-keyfromlabel/Makefile index a698bff..fd6a341 100644 --- a/usr.sbin/dnssec-keyfromlabel/Makefile +++ b/usr.sbin/dnssec-keyfromlabel/Makefile @@ -17,6 +17,8 @@ CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 3 + MAN= dnssec-keyfromlabel.8 .include diff --git a/usr.sbin/dnssec-keygen/Makefile b/usr.sbin/dnssec-keygen/Makefile index 3ac9005..1bdf0c0 100644 --- a/usr.sbin/dnssec-keygen/Makefile +++ b/usr.sbin/dnssec-keygen/Makefile @@ -17,6 +17,8 @@ CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 3 + MAN= dnssec-keygen.8 .include diff --git a/usr.sbin/dnssec-signzone/Makefile b/usr.sbin/dnssec-signzone/Makefile index 7c4ca65..70ddc3e 100644 --- a/usr.sbin/dnssec-signzone/Makefile +++ b/usr.sbin/dnssec-signzone/Makefile @@ -17,6 +17,8 @@ CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 3 + MAN= dnssec-signzone.8 .include diff --git a/usr.sbin/dumpcis/Makefile b/usr.sbin/dumpcis/Makefile index 283de3a..7a5a590 100644 --- a/usr.sbin/dumpcis/Makefile +++ b/usr.sbin/dumpcis/Makefile @@ -5,6 +5,5 @@ PROG= dumpcis MAN= dumpcis.8 SRCS= main.c readcis.c printcis.c -WARNS?= 5 .include diff --git a/usr.sbin/editmap/Makefile b/usr.sbin/editmap/Makefile index 93e3e07..92d8392 100644 --- a/usr.sbin/editmap/Makefile +++ b/usr.sbin/editmap/Makefile @@ -10,6 +10,8 @@ MAN= editmap.8 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNEWDB -DNOT_SENDMAIL +WARNS?= 2 + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/usr.sbin/edquota/Makefile b/usr.sbin/edquota/Makefile index e5a3b12..b8c35ae 100644 --- a/usr.sbin/edquota/Makefile +++ b/usr.sbin/edquota/Makefile @@ -4,6 +4,4 @@ PROG= edquota MAN= edquota.8 -WARNS?= 4 - .include diff --git a/usr.sbin/eeprom/Makefile b/usr.sbin/eeprom/Makefile index fa5f411..61b48a2 100644 --- a/usr.sbin/eeprom/Makefile +++ b/usr.sbin/eeprom/Makefile @@ -6,7 +6,6 @@ PROG= eeprom MAN= eeprom.8 MANSUBDIR= /sparc64 SRCS= eeprom.c ofw_options.c ofw_util.c -WARNS?= 6 CFLAGS+= -I${.CURDIR}/../ofwdump .include diff --git a/usr.sbin/extattr/Makefile b/usr.sbin/extattr/Makefile index ae34975..8e2b5f7 100644 --- a/usr.sbin/extattr/Makefile +++ b/usr.sbin/extattr/Makefile @@ -11,6 +11,4 @@ MLINKS+= rmextattr.8 setextattr.8 MLINKS+= rmextattr.8 getextattr.8 MLINKS+= rmextattr.8 lsextattr.8 -WARNS?= 5 - .include diff --git a/usr.sbin/extattrctl/Makefile b/usr.sbin/extattrctl/Makefile index 5eb1945..496a8aa 100644 --- a/usr.sbin/extattrctl/Makefile +++ b/usr.sbin/extattrctl/Makefile @@ -3,6 +3,4 @@ PROG= extattrctl MAN= extattrctl.8 -WARNS?= 2 - .include diff --git a/usr.sbin/faithd/Makefile b/usr.sbin/faithd/Makefile index e1898ed..dec45b9 100644 --- a/usr.sbin/faithd/Makefile +++ b/usr.sbin/faithd/Makefile @@ -20,4 +20,6 @@ SRCS= faithd.c tcp.c ftp.c prefix.c CFLAGS+= -DHAVE_POLL_H +WARNS?= 2 + .include diff --git a/usr.sbin/fdcontrol/Makefile b/usr.sbin/fdcontrol/Makefile index e2b54aa..5f1426b 100644 --- a/usr.sbin/fdcontrol/Makefile +++ b/usr.sbin/fdcontrol/Makefile @@ -4,7 +4,6 @@ PROG= fdcontrol SRCS= fdcontrol.c fdutil.c -WARNS?= 6 CFLAGS+= -I${.CURDIR}/../fdread MAN= fdcontrol.8 diff --git a/usr.sbin/fdformat/Makefile b/usr.sbin/fdformat/Makefile index a172811..59cd124 100644 --- a/usr.sbin/fdformat/Makefile +++ b/usr.sbin/fdformat/Makefile @@ -5,7 +5,6 @@ PROG= fdformat SRCS= fdformat.c fdutil.c -WARNS?= 6 CFLAGS+= -I${.CURDIR}/../fdread .if ${MACHINE} == "pc98" diff --git a/usr.sbin/fdread/Makefile b/usr.sbin/fdread/Makefile index 2868a3c..e99c620 100644 --- a/usr.sbin/fdread/Makefile +++ b/usr.sbin/fdread/Makefile @@ -3,8 +3,6 @@ PROG= fdread SRCS= fdread.c fdutil.c -WARNS?= 6 - .if ${MACHINE} == "pc98" CFLAGS+= -DPC98 .endif diff --git a/usr.sbin/fdwrite/Makefile b/usr.sbin/fdwrite/Makefile index ba6f047..b97bdd4 100644 --- a/usr.sbin/fdwrite/Makefile +++ b/usr.sbin/fdwrite/Makefile @@ -8,6 +8,5 @@ # $FreeBSD$ PROG= fdwrite -WARNS?= 6 .include diff --git a/usr.sbin/fifolog/Makefile.inc b/usr.sbin/fifolog/Makefile.inc index 7fb2a9e..5ec27dd 100644 --- a/usr.sbin/fifolog/Makefile.inc +++ b/usr.sbin/fifolog/Makefile.inc @@ -2,8 +2,6 @@ LIBFIFOLOG= ${.OBJDIR}/../lib/libfifolog.a -WARNS?= 6 - #LINT= flint #LINTFLAGS= ${.CURDIR}/../flint.lnt -I/usr/include diff --git a/usr.sbin/ftp-proxy/libevent/Makefile b/usr.sbin/ftp-proxy/libevent/Makefile index acc546f..a8ff09b 100644 --- a/usr.sbin/ftp-proxy/libevent/Makefile +++ b/usr.sbin/ftp-proxy/libevent/Makefile @@ -22,4 +22,6 @@ CFLAGS+= -I${.CURDIR} \ -DHAVE_WORKING_KQUEUE \ -DVERSION='"1.3b"' +WARNS?= 2 + .include diff --git a/usr.sbin/getfmac/Makefile b/usr.sbin/getfmac/Makefile index ad49657..f9fa1b2 100644 --- a/usr.sbin/getfmac/Makefile +++ b/usr.sbin/getfmac/Makefile @@ -3,6 +3,4 @@ PROG= getfmac MAN= getfmac.8 -WARNS?= 6 - .include diff --git a/usr.sbin/getpmac/Makefile b/usr.sbin/getpmac/Makefile index 87e6d28..5974728 100644 --- a/usr.sbin/getpmac/Makefile +++ b/usr.sbin/getpmac/Makefile @@ -3,6 +3,4 @@ PROG= getpmac MAN= getpmac.8 -WARNS?= 6 - .include diff --git a/usr.sbin/gstat/Makefile b/usr.sbin/gstat/Makefile index a02cf46..2a6da40 100644 --- a/usr.sbin/gstat/Makefile +++ b/usr.sbin/gstat/Makefile @@ -2,7 +2,6 @@ PROG= gstat MAN= gstat.8 -WARNS?= 5 DPADD= ${LIBDEVSTAT} ${LIBKVM} ${LIBGEOM} ${LIBBSDXML} ${LIBSBUF} ${LIBEDIT} ${LIBCURSES} LDADD= -ldevstat -lkvm -lgeom -lbsdxml -lsbuf -ledit -lcurses diff --git a/usr.sbin/inetd/Makefile b/usr.sbin/inetd/Makefile index 35f2c22..29aacd1 100644 --- a/usr.sbin/inetd/Makefile +++ b/usr.sbin/inetd/Makefile @@ -8,7 +8,7 @@ MAN= inetd.8 MLINKS= inetd.8 inetd.conf.5 SRCS= inetd.c builtins.c -WARNS?= 2 +WARNS?= 3 CFLAGS+= -DLOGIN_CAP #CFLAGS+= -DSANITY_CHECK diff --git a/usr.sbin/iostat/Makefile b/usr.sbin/iostat/Makefile index 558b09b..9fd4809 100644 --- a/usr.sbin/iostat/Makefile +++ b/usr.sbin/iostat/Makefile @@ -7,4 +7,6 @@ MAN= iostat.8 DPADD= ${LIBDEVSTAT} ${LIBKVM} ${LIBM} LDADD= -ldevstat -lkvm -lm +WARNS?= 1 + .include diff --git a/usr.sbin/ip6addrctl/Makefile b/usr.sbin/ip6addrctl/Makefile index cd2510e..93a2990 100644 --- a/usr.sbin/ip6addrctl/Makefile +++ b/usr.sbin/ip6addrctl/Makefile @@ -3,4 +3,6 @@ PROG= ip6addrctl MAN= ip6addrctl.8 +WARNS?= 2 + .include diff --git a/usr.sbin/ipfwpcap/Makefile b/usr.sbin/ipfwpcap/Makefile index 5615eb1..d16f888 100644 --- a/usr.sbin/ipfwpcap/Makefile +++ b/usr.sbin/ipfwpcap/Makefile @@ -11,8 +11,6 @@ DPADD= ${LIBPCAP} MAN= ipfwpcap.8 -WARNS?= 6 - .include test: $(CMD) diff --git a/usr.sbin/jail/Makefile b/usr.sbin/jail/Makefile index 74fd6c4..de35dcf 100644 --- a/usr.sbin/jail/Makefile +++ b/usr.sbin/jail/Makefile @@ -7,8 +7,6 @@ MAN= jail.8 DPADD= ${LIBJAIL} ${LIBUTIL} LDADD= -ljail -lutil -WARNS?= 6 - .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 .endif diff --git a/usr.sbin/jexec/Makefile b/usr.sbin/jexec/Makefile index d55ea0fc..7a2e6821 100644 --- a/usr.sbin/jexec/Makefile +++ b/usr.sbin/jexec/Makefile @@ -4,6 +4,5 @@ PROG= jexec MAN= jexec.8 DPADD= ${LIBJAIL} ${LIBUTIL} LDADD= -ljail -lutil -WARNS?= 6 .include diff --git a/usr.sbin/jls/Makefile b/usr.sbin/jls/Makefile index 2d02c56..e1157af 100644 --- a/usr.sbin/jls/Makefile +++ b/usr.sbin/jls/Makefile @@ -5,6 +5,4 @@ MAN= jls.8 DPADD= ${LIBJAIL} LDADD= -ljail -WARNS?= 6 - .include diff --git a/usr.sbin/kernbb/Makefile b/usr.sbin/kernbb/Makefile index 7da462b..f3bf37c 100644 --- a/usr.sbin/kernbb/Makefile +++ b/usr.sbin/kernbb/Makefile @@ -8,6 +8,5 @@ LDADD= -lkvm CFLAGS+= -I${.CURDIR}/../../contrib/gcc -WARNS?= 3 .include diff --git a/usr.sbin/lastlogin/Makefile b/usr.sbin/lastlogin/Makefile index ab87f4b..4c65ab9 100644 --- a/usr.sbin/lastlogin/Makefile +++ b/usr.sbin/lastlogin/Makefile @@ -6,6 +6,4 @@ MAN= lastlogin.8 DPADD= ${LIBULOG} LDADD= -lulog -WARNS?= 6 - .include diff --git a/usr.sbin/lmcconfig/Makefile b/usr.sbin/lmcconfig/Makefile index b75ec2c..842431a 100644 --- a/usr.sbin/lmcconfig/Makefile +++ b/usr.sbin/lmcconfig/Makefile @@ -6,4 +6,6 @@ MAN= lmcconfig.8 DPADD= ${LIBNETGRAPH} LDADD= -lnetgraph +WARNS?= 0 + .include diff --git a/usr.sbin/lpr/common_source/Makefile b/usr.sbin/lpr/common_source/Makefile index 14db0b7..4f148f9 100644 --- a/usr.sbin/lpr/common_source/Makefile +++ b/usr.sbin/lpr/common_source/Makefile @@ -10,4 +10,6 @@ INTERNALLIB= SRCS= common.c ctlinfo.c displayq.c matchjobs.c net.c \ printcap.c request.c rmjob.c startdaemon.c +WARNS?= 1 + .include diff --git a/usr.sbin/lpr/filters.ru/Makefile.inc b/usr.sbin/lpr/filters.ru/Makefile.inc index a312e73..36a6f46 100644 --- a/usr.sbin/lpr/filters.ru/Makefile.inc +++ b/usr.sbin/lpr/filters.ru/Makefile.inc @@ -1,3 +1,5 @@ # $FreeBSD$ BINDIR= /usr/libexec/lpr/ru + +WARNS?= 3 diff --git a/usr.sbin/lpr/lpc/Makefile b/usr.sbin/lpr/lpc/Makefile index f050857..35fa52a 100644 --- a/usr.sbin/lpr/lpc/Makefile +++ b/usr.sbin/lpr/lpc/Makefile @@ -11,6 +11,8 @@ BINMODE= 2555 CFLAGS+= -I${.CURDIR}/../common_source +WARNS?= 0 + DPADD= ${LIBLPR} ${LIBEDIT} ${LIBTERMCAP} LDADD= ${LIBLPR} -ledit -ltermcap diff --git a/usr.sbin/lpr/lpd/Makefile b/usr.sbin/lpr/lpd/Makefile index 9af3655..0d7d93e 100644 --- a/usr.sbin/lpr/lpd/Makefile +++ b/usr.sbin/lpr/lpd/Makefile @@ -7,6 +7,8 @@ SRCS= lpd.c printjob.c recvjob.c lpdchar.c modes.c CFLAGS+= -I${.CURDIR}/../common_source +WARNS?= 1 + DPADD= ${LIBLPR} LDADD= ${LIBLPR} diff --git a/usr.sbin/lpr/lpr/Makefile b/usr.sbin/lpr/lpr/Makefile index 1ff376d..1894b00 100644 --- a/usr.sbin/lpr/lpr/Makefile +++ b/usr.sbin/lpr/lpr/Makefile @@ -13,6 +13,8 @@ BINMODE= 6555 CFLAGS+= -I${.CURDIR}/../common_source +WARNS?= 2 + DPADD= ${LIBLPR} LDADD= ${LIBLPR} diff --git a/usr.sbin/lptcontrol/Makefile b/usr.sbin/lptcontrol/Makefile index 3f7a939..0cff620 100644 --- a/usr.sbin/lptcontrol/Makefile +++ b/usr.sbin/lptcontrol/Makefile @@ -3,6 +3,4 @@ PROG= lptcontrol MAN= lptcontrol.8 -WARNS?= 6 - .include diff --git a/usr.sbin/mailstats/Makefile b/usr.sbin/mailstats/Makefile index 86137b0..bd72fc6 100644 --- a/usr.sbin/mailstats/Makefile +++ b/usr.sbin/mailstats/Makefile @@ -11,6 +11,8 @@ MAN= mailstats.8 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNOT_SENDMAIL +WARNS?= 2 + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/usr.sbin/mailwrapper/Makefile b/usr.sbin/mailwrapper/Makefile index 252f5e7..3f305f7 100644 --- a/usr.sbin/mailwrapper/Makefile +++ b/usr.sbin/mailwrapper/Makefile @@ -8,7 +8,6 @@ MAN= mailwrapper.8 DPADD= ${LIBUTIL} LDADD= -lutil -WARNS?= 6 .endif .if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no" diff --git a/usr.sbin/makemap/Makefile b/usr.sbin/makemap/Makefile index 5d30c67..80cafcb 100644 --- a/usr.sbin/makemap/Makefile +++ b/usr.sbin/makemap/Makefile @@ -11,6 +11,8 @@ MAN= makemap.8 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNEWDB -DNOT_SENDMAIL +WARNS?= 2 + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/usr.sbin/memcontrol/Makefile b/usr.sbin/memcontrol/Makefile index 25009db..d465d53 100644 --- a/usr.sbin/memcontrol/Makefile +++ b/usr.sbin/memcontrol/Makefile @@ -2,6 +2,5 @@ PROG= memcontrol MAN= memcontrol.8 -WARNS?= 6 .include diff --git a/usr.sbin/mixer/Makefile b/usr.sbin/mixer/Makefile index deb3539..abc0182 100644 --- a/usr.sbin/mixer/Makefile +++ b/usr.sbin/mixer/Makefile @@ -3,6 +3,4 @@ PROG= mixer MAN= mixer.8 -WARNS?= 6 - .include diff --git a/usr.sbin/mld6query/Makefile b/usr.sbin/mld6query/Makefile index 0e9da49..1d4b443 100644 --- a/usr.sbin/mld6query/Makefile +++ b/usr.sbin/mld6query/Makefile @@ -20,4 +20,6 @@ SRCS= mld6.c CFLAGS+= -DIPSEC -DUSE_RFC2292BIS +WARNS?= 2 + .include diff --git a/usr.sbin/mlxcontrol/Makefile b/usr.sbin/mlxcontrol/Makefile index 95964a5..038544b 100644 --- a/usr.sbin/mlxcontrol/Makefile +++ b/usr.sbin/mlxcontrol/Makefile @@ -6,4 +6,6 @@ SRCS= command.c config.c interface.c util.c CFLAGS+= -I${.CURDIR}/../../sys +WARNS?= 2 + .include diff --git a/usr.sbin/mount_smbfs/Makefile b/usr.sbin/mount_smbfs/Makefile index ade4fad..9b73944 100644 --- a/usr.sbin/mount_smbfs/Makefile +++ b/usr.sbin/mount_smbfs/Makefile @@ -2,7 +2,6 @@ PROG= mount_smbfs SRCS= mount_smbfs.c getmntopts.c -WARNS?= 6 MAN= mount_smbfs.8 MOUNTDIR= ${.CURDIR}/../../sbin/mount diff --git a/usr.sbin/moused/Makefile b/usr.sbin/moused/Makefile index 623954e..a313a21 100644 --- a/usr.sbin/moused/Makefile +++ b/usr.sbin/moused/Makefile @@ -3,8 +3,6 @@ PROG= moused MAN= moused.8 -WARNS?=6 - DPADD= ${LIBUTIL} ${LIBM} LDADD= -lutil -lm diff --git a/usr.sbin/mptable/Makefile b/usr.sbin/mptable/Makefile index a9221f9..cff7602 100644 --- a/usr.sbin/mptable/Makefile +++ b/usr.sbin/mptable/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= mptable -WARNS?= 6 .include diff --git a/usr.sbin/mtree/Makefile b/usr.sbin/mtree/Makefile index b66c8bb..cbc4fd9 100644 --- a/usr.sbin/mtree/Makefile +++ b/usr.sbin/mtree/Makefile @@ -8,8 +8,6 @@ MAN= mtree.8 mtree.5 SRCS= compare.c crc.c create.c excludes.c misc.c mtree.c spec.c verify.c SRCS+= specspec.c -WARNS?= 4 - CFLAGS+= -DMD5 -DSHA1 -DRMD160 -DSHA256 DPADD= ${LIBMD} LDADD= -lmd diff --git a/usr.sbin/named-checkconf/Makefile b/usr.sbin/named-checkconf/Makefile index 8728b4a..618cc13 100644 --- a/usr.sbin/named-checkconf/Makefile +++ b/usr.sbin/named-checkconf/Makefile @@ -14,6 +14,8 @@ SRCS+= named-checkconf.c check-tool.c CFLAGS+= -I${LIB_BIND_DIR} +WARNS?= 3 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.sbin/named-checkzone/Makefile b/usr.sbin/named-checkzone/Makefile index 169c00a..05cc9f2 100644 --- a/usr.sbin/named-checkzone/Makefile +++ b/usr.sbin/named-checkzone/Makefile @@ -14,6 +14,8 @@ SRCS+= named-checkzone.c check-tool.c CFLAGS+= -I${LIB_BIND_DIR} +WARNS?= 3 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.sbin/named/Makefile b/usr.sbin/named/Makefile index 608866a..296afe9 100644 --- a/usr.sbin/named/Makefile +++ b/usr.sbin/named/Makefile @@ -51,6 +51,8 @@ CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include # Remove the date stamp to make it more obvious when real changes happen CFLAGS+= -U__DATE__ +WARNS?= 0 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.sbin/ndp/Makefile b/usr.sbin/ndp/Makefile index f156691..552ac53 100644 --- a/usr.sbin/ndp/Makefile +++ b/usr.sbin/ndp/Makefile @@ -22,4 +22,6 @@ SRCS= ndp.c gmt2local.c CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../contrib/tcpdump CFLAGS+= -D_U_="" +WARNS?= 1 + .include diff --git a/usr.sbin/newsyslog/Makefile b/usr.sbin/newsyslog/Makefile index 9c301a1..ebc297b 100644 --- a/usr.sbin/newsyslog/Makefile +++ b/usr.sbin/newsyslog/Makefile @@ -4,6 +4,4 @@ PROG= newsyslog MAN= newsyslog.8 newsyslog.conf.5 SRCS= newsyslog.c ptimes.c -WARNS?= 2 - .include diff --git a/usr.sbin/nfsd/Makefile b/usr.sbin/nfsd/Makefile index 3237ce3..2905067 100644 --- a/usr.sbin/nfsd/Makefile +++ b/usr.sbin/nfsd/Makefile @@ -4,6 +4,4 @@ PROG= nfsd MAN= nfsd.8 nfsv4.4 stablerestart.5 -WARNS?= 6 - .include diff --git a/usr.sbin/nghook/Makefile b/usr.sbin/nghook/Makefile index 73f2df3..e427f26 100644 --- a/usr.sbin/nghook/Makefile +++ b/usr.sbin/nghook/Makefile @@ -4,7 +4,6 @@ PROG= nghook MAN= nghook.8 SRCS= main.c -WARNS?= 6 DPADD= ${LIBNETGRAPH} LDADD= -lnetgraph diff --git a/usr.sbin/ntp/Makefile.inc b/usr.sbin/ntp/Makefile.inc index f81905a..5095e89 100644 --- a/usr.sbin/ntp/Makefile.inc +++ b/usr.sbin/ntp/Makefile.inc @@ -18,4 +18,6 @@ LIBOPTS= ${.OBJDIR}/../libopts/libopts.a LIBPARSE= ${.OBJDIR}/../libparse/libparse.a LIBNTP= ${.OBJDIR}/../libntp/libntp.a +WARNS?= 0 + .include "../Makefile.inc" diff --git a/usr.sbin/nvram/Makefile b/usr.sbin/nvram/Makefile index 3cca037..2c6e43c 100644 --- a/usr.sbin/nvram/Makefile +++ b/usr.sbin/nvram/Makefile @@ -4,6 +4,4 @@ PROG= nvram MAN= nvram.8 MANSUBDIR= /powerpc -WARNS?= 6 - .include diff --git a/usr.sbin/ofwdump/Makefile b/usr.sbin/ofwdump/Makefile index a20e94f..ca4f486 100644 --- a/usr.sbin/ofwdump/Makefile +++ b/usr.sbin/ofwdump/Makefile @@ -4,6 +4,4 @@ PROG= ofwdump MAN= ofwdump.8 SRCS= ofwdump.c ofw_util.c -WARNS?= 6 - .include diff --git a/usr.sbin/pciconf/Makefile b/usr.sbin/pciconf/Makefile index e57e736..9fbec00 100644 --- a/usr.sbin/pciconf/Makefile +++ b/usr.sbin/pciconf/Makefile @@ -7,4 +7,6 @@ MAN= pciconf.8 CFLAGS+= -I${.CURDIR}/../../sys +WARNS?= 3 + .include diff --git a/usr.sbin/pkg_install/delete/Makefile b/usr.sbin/pkg_install/delete/Makefile index c346ea7..c9a0fde 100644 --- a/usr.sbin/pkg_install/delete/Makefile +++ b/usr.sbin/pkg_install/delete/Makefile @@ -5,7 +5,6 @@ SRCS= main.c perform.c CFLAGS+= -I${.CURDIR}/../lib -WARNS?= 6 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBMD} diff --git a/usr.sbin/pkg_install/info/Makefile b/usr.sbin/pkg_install/info/Makefile index 675f7ca..485cb22 100644 --- a/usr.sbin/pkg_install/info/Makefile +++ b/usr.sbin/pkg_install/info/Makefile @@ -5,7 +5,6 @@ SRCS= main.c perform.c show.c CFLAGS+= -I${.CURDIR}/../lib -WARNS?= 6 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD} diff --git a/usr.sbin/pkg_install/updating/Makefile b/usr.sbin/pkg_install/updating/Makefile index cf8bfc8..b0d3689 100644 --- a/usr.sbin/pkg_install/updating/Makefile +++ b/usr.sbin/pkg_install/updating/Makefile @@ -5,7 +5,6 @@ SRCS= main.c CFLAGS+= -I${.CURDIR}/../lib -WARNS?= 6 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD} diff --git a/usr.sbin/pkg_install/version/Makefile b/usr.sbin/pkg_install/version/Makefile index 71168ee..3e1d7a5 100644 --- a/usr.sbin/pkg_install/version/Makefile +++ b/usr.sbin/pkg_install/version/Makefile @@ -5,7 +5,6 @@ SRCS= main.c perform.c CFLAGS+= -I${.CURDIR}/../lib -WARNS?= 6 WFORMAT?= 1 DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD} diff --git a/usr.sbin/pmcannotate/Makefile b/usr.sbin/pmcannotate/Makefile index e087bb3..cff1efb 100644 --- a/usr.sbin/pmcannotate/Makefile +++ b/usr.sbin/pmcannotate/Makefile @@ -5,8 +5,6 @@ PROG= pmcannotate MAN= pmcannotate.8 -WARNS?= 6 - SRCS= pmcannotate.c .include diff --git a/usr.sbin/pmccontrol/Makefile b/usr.sbin/pmccontrol/Makefile index 9dafe1c..0f6dc76 100644 --- a/usr.sbin/pmccontrol/Makefile +++ b/usr.sbin/pmccontrol/Makefile @@ -8,8 +8,6 @@ MAN= pmccontrol.8 DPADD= ${LIBPMC} LDADD= -lpmc -WARNS?= 6 - SRCS= pmccontrol.c .include diff --git a/usr.sbin/pmcstat/Makefile b/usr.sbin/pmcstat/Makefile index 6b11d8d..c115c42 100644 --- a/usr.sbin/pmcstat/Makefile +++ b/usr.sbin/pmcstat/Makefile @@ -8,8 +8,6 @@ MAN= pmcstat.8 DPADD= ${LIBELF} ${LIBKVM} ${LIBPMC} ${LIBM} LDADD= -lelf -lkvm -lpmc -lm -WARNS?= 6 - SRCS= pmcstat.c pmcstat.h pmcstat_log.c .include diff --git a/usr.sbin/pnpinfo/Makefile b/usr.sbin/pnpinfo/Makefile index 294b4f7..164ef37 100644 --- a/usr.sbin/pnpinfo/Makefile +++ b/usr.sbin/pnpinfo/Makefile @@ -11,4 +11,6 @@ CFLAGS+= -I${.CURDIR}/../../sys CFLAGS+= -DPC98 .endif +WARNS?= 2 + .include diff --git a/usr.sbin/portsnap/make_index/Makefile b/usr.sbin/portsnap/make_index/Makefile index 65b1a8e..87768f6 100644 --- a/usr.sbin/portsnap/make_index/Makefile +++ b/usr.sbin/portsnap/make_index/Makefile @@ -2,7 +2,6 @@ PROG= make_index NO_MAN= -WARNS?= 6 BINDIR= ${LIBEXECDIR} diff --git a/usr.sbin/portsnap/phttpget/Makefile b/usr.sbin/portsnap/phttpget/Makefile index 154ff15..6f003e3 100644 --- a/usr.sbin/portsnap/phttpget/Makefile +++ b/usr.sbin/portsnap/phttpget/Makefile @@ -2,7 +2,6 @@ PROG= phttpget NO_MAN= -WARNS?= 6 BINDIR= ${LIBEXECDIR} diff --git a/usr.sbin/powerd/Makefile b/usr.sbin/powerd/Makefile index 6adb188..b1d8d11 100644 --- a/usr.sbin/powerd/Makefile +++ b/usr.sbin/powerd/Makefile @@ -2,7 +2,6 @@ PROG= powerd MAN= powerd.8 -WARNS?= 6 DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/usr.sbin/pppctl/Makefile b/usr.sbin/pppctl/Makefile index 6cdcc3d..2f2be4b 100644 --- a/usr.sbin/pppctl/Makefile +++ b/usr.sbin/pppctl/Makefile @@ -3,6 +3,8 @@ PROG= pppctl MAN= pppctl.8 +WARNS?= 2 + DPADD= ${LIBPTHREAD} ${LIBEDIT} ${LIBTERMCAP} LDADD= -lpthread -ledit -ltermcap diff --git a/usr.sbin/praliases/Makefile b/usr.sbin/praliases/Makefile index 81fd4d1..120028d 100644 --- a/usr.sbin/praliases/Makefile +++ b/usr.sbin/praliases/Makefile @@ -11,6 +11,8 @@ MAN= praliases.8 CFLAGS+= -I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+= -DNEWDB -DNOT_SENDMAIL +WARNS?= 2 + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/usr.sbin/praudit/Makefile b/usr.sbin/praudit/Makefile index 4ff08fd..6a61fd1 100644 --- a/usr.sbin/praudit/Makefile +++ b/usr.sbin/praudit/Makefile @@ -8,6 +8,8 @@ OPENBSMDIR=${.CURDIR}/../../contrib/openbsm PROG= praudit MAN= praudit.1 +WARNS?= 3 + DPADD= ${LIBBSM} LDADD= -lbsm diff --git a/usr.sbin/procctl/Makefile b/usr.sbin/procctl/Makefile index 5cb35e7..880b93a 100644 --- a/usr.sbin/procctl/Makefile +++ b/usr.sbin/procctl/Makefile @@ -3,6 +3,4 @@ PROG= procctl MAN= procctl.8 -WARNS?= 2 - .include diff --git a/usr.sbin/pstat/Makefile b/usr.sbin/pstat/Makefile index 4620dde..414708c 100644 --- a/usr.sbin/pstat/Makefile +++ b/usr.sbin/pstat/Makefile @@ -6,8 +6,6 @@ LINKS= ${BINDIR}/pstat ${BINDIR}/swapinfo MAN= pstat.8 MLINKS= pstat.8 swapinfo.8 -WARNS?= 6 - DPADD= ${LIBKVM} ${LIBUTIL} LDADD= -lkvm -lutil diff --git a/usr.sbin/pw/Makefile b/usr.sbin/pw/Makefile index 8937124..ae0023c 100644 --- a/usr.sbin/pw/Makefile +++ b/usr.sbin/pw/Makefile @@ -6,6 +6,8 @@ SRCS= pw.c pw_conf.c pw_user.c pw_group.c pw_log.c pw_nis.c pw_vpw.c \ grupd.c pwupd.c fileupd.c edgroup.c psdate.c \ bitmap.c cpdir.c rm_r.c +WARNS?= 1 + DPADD= ${LIBCRYPT} ${LIBUTIL} LDADD= -lcrypt -lutil diff --git a/usr.sbin/pwd_mkdb/Makefile b/usr.sbin/pwd_mkdb/Makefile index c3aaeb3..7616629 100644 --- a/usr.sbin/pwd_mkdb/Makefile +++ b/usr.sbin/pwd_mkdb/Makefile @@ -7,7 +7,6 @@ PROG= pwd_mkdb MAN= pwd_mkdb.8 SRCS= pw_scan.c pwd_mkdb.c -WARNS?= 4 CFLAGS+= -I${.CURDIR}/../../lib/libc/gen # for pw_scan.h .include diff --git a/usr.sbin/quotaon/Makefile b/usr.sbin/quotaon/Makefile index 3f88bd9..984008c 100644 --- a/usr.sbin/quotaon/Makefile +++ b/usr.sbin/quotaon/Makefile @@ -6,6 +6,4 @@ LINKS= ${BINDIR}/quotaon ${BINDIR}/quotaoff MAN= quotaon.8 MLINKS= quotaon.8 quotaoff.8 -WARNS?= 4 - .include diff --git a/usr.sbin/repquota/Makefile b/usr.sbin/repquota/Makefile index 087e890..208abd6 100644 --- a/usr.sbin/repquota/Makefile +++ b/usr.sbin/repquota/Makefile @@ -4,6 +4,4 @@ PROG= repquota MAN= repquota.8 -WARNS?= 4 - .include diff --git a/usr.sbin/rip6query/Makefile b/usr.sbin/rip6query/Makefile index e0ea621..fac9028 100644 --- a/usr.sbin/rip6query/Makefile +++ b/usr.sbin/rip6query/Makefile @@ -4,7 +4,6 @@ PROG= rip6query MAN= rip6query.8 -WARNS?= 2 CFLAGS+= -I${.CURDIR}/../route6d .include diff --git a/usr.sbin/rmt/Makefile b/usr.sbin/rmt/Makefile index 579a02b..8a678b6 100644 --- a/usr.sbin/rmt/Makefile +++ b/usr.sbin/rmt/Makefile @@ -4,8 +4,6 @@ PROG= rmt MAN= rmt.8 -WARNS?= 4 - # called from /usr/src/etc/Makefile etc-rmt: rm -f ${DESTDIR}/etc/rmt diff --git a/usr.sbin/rndc-confgen/Makefile b/usr.sbin/rndc-confgen/Makefile index b8a52dd..08f2d7e 100644 --- a/usr.sbin/rndc-confgen/Makefile +++ b/usr.sbin/rndc-confgen/Makefile @@ -17,6 +17,8 @@ SRCS+= rndc-confgen.c util.c CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR} +WARNS?= 3 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.sbin/rndc/Makefile b/usr.sbin/rndc/Makefile index 2ca7697..9cd356f 100644 --- a/usr.sbin/rndc/Makefile +++ b/usr.sbin/rndc/Makefile @@ -17,6 +17,8 @@ SRCS+= rndc.c util.c CFLAGS+= -I${SRCDIR}/unix/include -I${SRCDIR}/include -I${LIB_BIND_DIR} +WARNS?= 3 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.sbin/route6d/Makefile b/usr.sbin/route6d/Makefile index 308aad7..df23d33 100644 --- a/usr.sbin/route6d/Makefile +++ b/usr.sbin/route6d/Makefile @@ -6,4 +6,6 @@ MAN= route6d.8 CFLAGS+= -DHAVE_POLL_H +WARNS?= 1 + .include diff --git a/usr.sbin/rpc.lockd/Makefile b/usr.sbin/rpc.lockd/Makefile index 961ad17..c81da82 100644 --- a/usr.sbin/rpc.lockd/Makefile +++ b/usr.sbin/rpc.lockd/Makefile @@ -7,7 +7,7 @@ MLINKS= rpc.lockd.8 lockd.8 SRCS= kern.c nlm_prot_svc.c lockd.c lock_proc.c lockd_lock.c CFLAGS+= -I. -I${DESTDIR}/usr/include/rpcsvc -#WARNS?= 2 +WARNS?= 0 DPADD= ${LIBRPCSVC} ${LIBUTIL} LDADD= -lrpcsvc -lutil diff --git a/usr.sbin/rpc.statd/Makefile b/usr.sbin/rpc.statd/Makefile index 6d8053c..e69a9d6 100644 --- a/usr.sbin/rpc.statd/Makefile +++ b/usr.sbin/rpc.statd/Makefile @@ -5,7 +5,7 @@ MAN= rpc.statd.8 SRCS= file.c sm_inter_svc.c sm_inter.h statd.c procs.c CFLAGS+= -I. -#WARNS?= 2 +WARNS?= 2 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.sbin/rpc.umntall/Makefile b/usr.sbin/rpc.umntall/Makefile index 0a829c3..fc4a399 100644 --- a/usr.sbin/rpc.umntall/Makefile +++ b/usr.sbin/rpc.umntall/Makefile @@ -5,6 +5,6 @@ PROG= rpc.umntall MAN= rpc.umntall.8 SRCS= rpc.umntall.c mounttab.c -#WARNS?= 2 +WARNS?= 3 .include diff --git a/usr.sbin/rpc.yppasswdd/Makefile b/usr.sbin/rpc.yppasswdd/Makefile index bbd2658..b6a0a8c 100644 --- a/usr.sbin/rpc.yppasswdd/Makefile +++ b/usr.sbin/rpc.yppasswdd/Makefile @@ -14,7 +14,7 @@ SRCS= util.c yp_access.c yp_dblookup.c yp_dbwrite.c \ GENSRCS=yp.h yp_clnt.c yppasswd.h yppasswd_private.h yppasswd_private_svc.c \ yppasswd_private_xdr.c yppasswd_svc.c -WARNS?= 4 +WARNS?= 5 CFLAGS+= -fno-strict-aliasing CFLAGS+= -I${.CURDIR}/../../usr.sbin/vipw \ -I${.CURDIR}/../../usr.sbin/ypserv \ diff --git a/usr.sbin/rpc.ypupdated/Makefile b/usr.sbin/rpc.ypupdated/Makefile index 4fe19c9..fecb837 100644 --- a/usr.sbin/rpc.ypupdated/Makefile +++ b/usr.sbin/rpc.ypupdated/Makefile @@ -11,6 +11,8 @@ SRCS= ypupdate_prot_svc.c ypupdate_prot.h ypupdated_main.c \ #CFLAGS+= -DYP CFLAGS+= -I${.CURDIR}/../ypserv -I. -I${.CURDIR}/../../libexec/ypxfr +WARNS?= 1 + DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.sbin/rpc.ypxfrd/Makefile b/usr.sbin/rpc.ypxfrd/Makefile index 70729b1..ee9e242 100644 --- a/usr.sbin/rpc.ypxfrd/Makefile +++ b/usr.sbin/rpc.ypxfrd/Makefile @@ -9,6 +9,8 @@ SRCS= ypxfrd_svc.c ypxfrd.h ypxfrd_server.c yp_error.c \ CFLAGS+= -I. -DXFRBLOCKSIZE=65535 +WARNS?= 2 + DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.sbin/rpcbind/Makefile b/usr.sbin/rpcbind/Makefile index 3251378..dd042f2 100644 --- a/usr.sbin/rpcbind/Makefile +++ b/usr.sbin/rpcbind/Makefile @@ -14,6 +14,8 @@ CFLAGS+= -DPORTMAP -DLIBWRAP CFLAGS+= -DINET6 .endif +WARNS?= 1 + DPADD= ${LIBWRAP} ${LIBUTIL} LDADD= -lwrap -lutil diff --git a/usr.sbin/rrenumd/Makefile b/usr.sbin/rrenumd/Makefile index c31a7c7..091e528 100644 --- a/usr.sbin/rrenumd/Makefile +++ b/usr.sbin/rrenumd/Makefile @@ -21,6 +21,8 @@ SRCS= rrenumd.c parser.y lexer.l CFLAGS+= -DIPSEC -I. -I${.CURDIR} YFLAGS= -d +WARNS?= 2 + LDADD= -lipsec -ll -ly DPADD= ${LIBIPSEC} ${LIBL} ${LIBY} diff --git a/usr.sbin/rtadvd/Makefile b/usr.sbin/rtadvd/Makefile index f7e2021..90b45f1 100644 --- a/usr.sbin/rtadvd/Makefile +++ b/usr.sbin/rtadvd/Makefile @@ -20,4 +20,6 @@ SRCS= rtadvd.c rrenum.c advcap.c if.c config.c timer.c dump.c CFLAGS+= -DHAVE_ARC4RANDOM -DHAVE_POLL_H -DROUTEINFO +WARNS?= 1 + .include diff --git a/usr.sbin/rtprio/Makefile b/usr.sbin/rtprio/Makefile index ebc7bd1..b612f2b 100644 --- a/usr.sbin/rtprio/Makefile +++ b/usr.sbin/rtprio/Makefile @@ -5,4 +5,6 @@ PROG= rtprio LINKS= ${BINDIR}/rtprio ${BINDIR}/idprio MLINKS= rtprio.1 idprio.1 +WARNS?= 2 + .include diff --git a/usr.sbin/rtsold/Makefile b/usr.sbin/rtsold/Makefile index 1afa0f6..ad4059a 100644 --- a/usr.sbin/rtsold/Makefile +++ b/usr.sbin/rtsold/Makefile @@ -21,6 +21,8 @@ SRCS= rtsold.c rtsol.c if.c probe.c dump.c rtsock.c CFLAGS+= -DHAVE_ARC4RANDOM -DHAVE_POLL_H +WARNS?= 1 + DPADD= ${LIBKVM} LDADD= -lkvm diff --git a/usr.sbin/rwhod/Makefile b/usr.sbin/rwhod/Makefile index 6f99d56..439a11c 100644 --- a/usr.sbin/rwhod/Makefile +++ b/usr.sbin/rwhod/Makefile @@ -4,8 +4,7 @@ PROG= rwhod MAN= rwhod.8 -# XXX breaks on Alpha due to alignment constraints -#WARNS?= 4 +WARNS?= 3 DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.sbin/sa/Makefile b/usr.sbin/sa/Makefile index 718cbc8..0adf1f8 100644 --- a/usr.sbin/sa/Makefile +++ b/usr.sbin/sa/Makefile @@ -6,6 +6,4 @@ PROG= sa MAN= sa.8 SRCS= main.c db.c pdb.c usrdb.c readrec.c -WARNS?= 6 - .include diff --git a/usr.sbin/sendmail/Makefile b/usr.sbin/sendmail/Makefile index 0b89297..067f5d9 100644 --- a/usr.sbin/sendmail/Makefile +++ b/usr.sbin/sendmail/Makefile @@ -43,6 +43,8 @@ CFLAGS+= ${DBMDEF} ${NIS} -DTCPWRAPPERS ${MAPS} CFLAGS+= -DNETINET6 .endif +WARNS?= 2 + DPADD= ${LIBUTIL} ${LIBWRAP} LDADD= -lutil -lwrap diff --git a/usr.sbin/setfmac/Makefile b/usr.sbin/setfmac/Makefile index 34b979b..bcbd85f 100644 --- a/usr.sbin/setfmac/Makefile +++ b/usr.sbin/setfmac/Makefile @@ -4,6 +4,4 @@ PROG= setfmac LINKS= ${BINDIR}/setfmac ${BINDIR}/setfsmac MAN= setfmac.8 setfsmac.8 -WARNS?= 6 - .include diff --git a/usr.sbin/setpmac/Makefile b/usr.sbin/setpmac/Makefile index ae7ee02..a8bc1ac 100644 --- a/usr.sbin/setpmac/Makefile +++ b/usr.sbin/setpmac/Makefile @@ -3,6 +3,4 @@ PROG= setpmac MAN= setpmac.8 -WARNS?= 6 - .include diff --git a/usr.sbin/smbmsg/Makefile b/usr.sbin/smbmsg/Makefile index a581b2c..2ae6404 100644 --- a/usr.sbin/smbmsg/Makefile +++ b/usr.sbin/smbmsg/Makefile @@ -3,6 +3,5 @@ PROG= smbmsg MAN= smbmsg.8 -WARNS= 6 .include diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile index db61cae..bd08ac1 100644 --- a/usr.sbin/sysinstall/Makefile +++ b/usr.sbin/sysinstall/Makefile @@ -20,6 +20,8 @@ CFLAGS+= -DPC98 .endif CFLAGS+= -I${.CURDIR}/../../gnu/lib/libdialog -I. +WARNS?= 1 + DPADD= ${LIBDIALOG} ${LIBNCURSES} ${LIBUTIL} ${LIBDISK} ${LIBFTPIO} LDADD= -ldialog -lncurses -lutil -ldisk -lftpio diff --git a/usr.sbin/tcpdchk/Makefile b/usr.sbin/tcpdchk/Makefile index 2936984..a49ffc6 100644 --- a/usr.sbin/tcpdchk/Makefile +++ b/usr.sbin/tcpdchk/Makefile @@ -15,6 +15,8 @@ CFLAGS+=-DREAL_DAEMON_DIR=\"/usr/libexec\" \ CFLAGS+=-DINET6 .endif +WARNS?= 0 + DPADD= ${LIBWRAP} LDADD= -lwrap diff --git a/usr.sbin/tcpdmatch/Makefile b/usr.sbin/tcpdmatch/Makefile index cbd61aa..caae746 100644 --- a/usr.sbin/tcpdmatch/Makefile +++ b/usr.sbin/tcpdmatch/Makefile @@ -14,6 +14,8 @@ CFLAGS+=-DREAL_DAEMON_DIR=\"/usr/libexec\" \ CFLAGS+=-DINET6 .endif +WARNS?= 0 + DPADD= ${LIBWRAP} LDADD= -lwrap diff --git a/usr.sbin/tcpdrop/Makefile b/usr.sbin/tcpdrop/Makefile index 44766eb..2fc606a 100644 --- a/usr.sbin/tcpdrop/Makefile +++ b/usr.sbin/tcpdrop/Makefile @@ -3,6 +3,5 @@ PROG= tcpdrop MAN= tcpdrop.8 -WARNS?= 6 .include diff --git a/usr.sbin/tcpdump/Makefile.inc b/usr.sbin/tcpdump/Makefile.inc index 1e4d46f..6c4b6e2 100644 --- a/usr.sbin/tcpdump/Makefile.inc +++ b/usr.sbin/tcpdump/Makefile.inc @@ -2,3 +2,5 @@ # $FreeBSD$ BINDIR?= /usr/sbin + +WARNS?= 3 diff --git a/usr.sbin/traceroute/Makefile b/usr.sbin/traceroute/Makefile index 489c862..e73ff7f 100644 --- a/usr.sbin/traceroute/Makefile +++ b/usr.sbin/traceroute/Makefile @@ -31,6 +31,8 @@ LDADD= -lipsec CFLAGS+= -I${TRACEROUTE_DISTDIR}/lbl +WARNS?= 0 + version.c: ${TRACEROUTE_DISTDIR}/VERSION @rm -f ${.TARGET} head -1 ${TRACEROUTE_DISTDIR}/VERSION | \ diff --git a/usr.sbin/traceroute6/Makefile b/usr.sbin/traceroute6/Makefile index 60618a2..e0b72a1 100644 --- a/usr.sbin/traceroute6/Makefile +++ b/usr.sbin/traceroute6/Makefile @@ -25,6 +25,8 @@ BINMODE= 4555 CFLAGS+= -DIPSEC -DUSE_RFC2292BIS -DHAVE_POLL CFLAGS+= -I${.CURDIR} -I${TRACEROUTE_DISTDIR} -I. +WARNS?= 1 + DPADD= ${LIBIPSEC} LDADD= -lipsec diff --git a/usr.sbin/tzsetup/Makefile b/usr.sbin/tzsetup/Makefile index 0596967..a9da310 100644 --- a/usr.sbin/tzsetup/Makefile +++ b/usr.sbin/tzsetup/Makefile @@ -5,6 +5,8 @@ MAN= tzsetup.8 CFLAGS+= -I${.CURDIR} +WARNS?= 3 + DPADD= ${LIBDIALOG} ${LIBNCURSES} LDADD= -ldialog -lncurses diff --git a/usr.sbin/uathload/Makefile b/usr.sbin/uathload/Makefile index 3083704..4f9b99d 100644 --- a/usr.sbin/uathload/Makefile +++ b/usr.sbin/uathload/Makefile @@ -5,8 +5,6 @@ MAN= uathload.8 SRCS= uathload.c ar5523.bin -WARNS?= 4 - CLEANFILES= ar5523.bin ar5523.bin: ${.CURDIR}/../../sys/contrib/dev/uath/ar5523.bin.uu diff --git a/usr.sbin/usbdevs/Makefile b/usr.sbin/usbdevs/Makefile index 985bc7a..3cfc8ef 100644 --- a/usr.sbin/usbdevs/Makefile +++ b/usr.sbin/usbdevs/Makefile @@ -4,6 +4,4 @@ PROG= usbdevs MAN= usbdevs.8 -WARNS?= 2 - .include diff --git a/usr.sbin/vidcontrol/Makefile b/usr.sbin/vidcontrol/Makefile index 074f941..8c8f6bb 100644 --- a/usr.sbin/vidcontrol/Makefile +++ b/usr.sbin/vidcontrol/Makefile @@ -3,6 +3,4 @@ PROG= vidcontrol SRCS= vidcontrol.c decode.c -WARNS?= 6 - .include diff --git a/usr.sbin/vipw/Makefile b/usr.sbin/vipw/Makefile index 69a9df9..d98e401 100644 --- a/usr.sbin/vipw/Makefile +++ b/usr.sbin/vipw/Makefile @@ -4,8 +4,6 @@ PROG= vipw MAN= vipw.8 -WARNS?= 4 - DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/usr.sbin/wake/Makefile b/usr.sbin/wake/Makefile index ee303af..938fc66 100644 --- a/usr.sbin/wake/Makefile +++ b/usr.sbin/wake/Makefile @@ -2,6 +2,5 @@ PROG= wake MAN= wake.8 -WARNS?= 6 .include diff --git a/usr.sbin/watchdogd/Makefile b/usr.sbin/watchdogd/Makefile index 08880e1..be69d2b 100644 --- a/usr.sbin/watchdogd/Makefile +++ b/usr.sbin/watchdogd/Makefile @@ -3,7 +3,6 @@ PROG= watchdogd LINKS= ${BINDIR}/watchdogd ${BINDIR}/watchdog MAN= watchdogd.8 watchdog.8 -WARNS?= 6 LDADD= -lm -lutil DPADD= ${LIBM} ${LIBUTIL} diff --git a/usr.sbin/wlandebug/Makefile b/usr.sbin/wlandebug/Makefile index 5284257..e916c23 100644 --- a/usr.sbin/wlandebug/Makefile +++ b/usr.sbin/wlandebug/Makefile @@ -3,4 +3,6 @@ PROG= wlandebug MAN= wlandebug.8 +WARNS?= 2 + .include diff --git a/usr.sbin/wlconfig/Makefile b/usr.sbin/wlconfig/Makefile index 8d3d0cc..8bc6262 100644 --- a/usr.sbin/wlconfig/Makefile +++ b/usr.sbin/wlconfig/Makefile @@ -4,4 +4,6 @@ PROG= wlconfig MAN= wlconfig.8 MANSUBDIR= /i386 +WARNS?= 2 + .include diff --git a/usr.sbin/yp_mkdb/Makefile b/usr.sbin/yp_mkdb/Makefile index 973da6e..1c41105 100644 --- a/usr.sbin/yp_mkdb/Makefile +++ b/usr.sbin/yp_mkdb/Makefile @@ -9,4 +9,6 @@ SRCS= yp_mkdb.c yp_dblookup.c yp_dbwrite.c CFLAGS+= -Dyp_error=warnx CFLAGS+= -I${.CURDIR}/../../libexec/ypxfr -I${.CURDIR}/../../usr.sbin/ypserv +WARNS?= 1 + .include diff --git a/usr.sbin/ypbind/Makefile b/usr.sbin/ypbind/Makefile index 915d001..8e9a231 100644 --- a/usr.sbin/ypbind/Makefile +++ b/usr.sbin/ypbind/Makefile @@ -7,4 +7,6 @@ SRCS= ypbind.c yp_ping.c CFLAGS+= -DDAEMON +WARNS?= 2 + .include diff --git a/usr.sbin/yppoll/Makefile b/usr.sbin/yppoll/Makefile index 63763316..701633b 100644 --- a/usr.sbin/yppoll/Makefile +++ b/usr.sbin/yppoll/Makefile @@ -4,4 +4,6 @@ PROG= yppoll MAN= yppoll.8 +WARNS?= 3 + .include diff --git a/usr.sbin/yppush/Makefile b/usr.sbin/yppush/Makefile index 7ce1c61..887a80b 100644 --- a/usr.sbin/yppush/Makefile +++ b/usr.sbin/yppush/Makefile @@ -12,6 +12,8 @@ GENSRCS=yp.h yp_clnt.c yppush_svc.c CFLAGS+= -I. -I${.CURDIR}/../../libexec/ypxfr +WARNS?= 2 + RPCGEN= rpcgen -C CLEANFILES= ${GENSRCS} diff --git a/usr.sbin/ypserv/Makefile b/usr.sbin/ypserv/Makefile index c1b2df3..73a6195 100644 --- a/usr.sbin/ypserv/Makefile +++ b/usr.sbin/ypserv/Makefile @@ -10,6 +10,8 @@ SRCS= yp_svc.c yp_server.c yp_dblookup.c yp_dnslookup.c \ CFLAGS+= -DDB_CACHE -DTCP_WRAPPER -I. +WARNS?= 0 + DPADD= ${LIBWRAP} LDADD= -lwrap diff --git a/usr.sbin/ypset/Makefile b/usr.sbin/ypset/Makefile index 10ed5f8..708ff87 100644 --- a/usr.sbin/ypset/Makefile +++ b/usr.sbin/ypset/Makefile @@ -4,4 +4,6 @@ PROG= ypset MAN= ypset.8 +WARNS?= 2 + .include diff --git a/usr.sbin/zic/zdump/Makefile b/usr.sbin/zic/zdump/Makefile index 3443b15..7ee8db3 100644 --- a/usr.sbin/zic/zdump/Makefile +++ b/usr.sbin/zic/zdump/Makefile @@ -10,4 +10,6 @@ CFLAGS+= -DTM_GMTOFF=tm_gmtoff -DTM_ZONE=tm_zone -DSTD_INSPIRED -DPCTS CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime +WARNS?= 2 + .include diff --git a/usr.sbin/zic/zic/Makefile b/usr.sbin/zic/zic/Makefile index 3f3bc70..02dc6e2 100644 --- a/usr.sbin/zic/zic/Makefile +++ b/usr.sbin/zic/zic/Makefile @@ -11,4 +11,6 @@ CFLAGS+= -DHAVE_LONG_DOUBLE -DTZDIR=\"/usr/share/zoneinfo\" -Demkdir=mkdir CFLAGS+= -DHAVE_STRERROR -DHAVE_UNISTD_H CFLAGS+= -I${.CURDIR}/.. -I${.CURDIR}/../../../lib/libc/stdtime +WARNS?= 2 + .include -- cgit v1.1