The last big commit: let usr.sbin/ use WARNS=6 by default.

This commit is contained in:
Ed Schouten 2010-01-02 11:07:44 +00:00
parent 1fa2ff1f64
commit 71ccf09269
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201390
163 changed files with 157 additions and 137 deletions

View File

@ -2,3 +2,5 @@
# $FreeBSD$
BINDIR?= /usr/sbin
WARNS?= 6

View File

@ -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

View File

@ -4,6 +4,4 @@
PROG= accton
MAN= accton.8
WARNS?= 4
.include <bsd.prog.mk>

View File

@ -3,6 +3,5 @@
PROG= acpiconf
MAN= acpiconf.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,5 @@
PROG= acpidump
MAN= acpidump.8
SRCS= acpi.c acpi_user.c acpidump.c
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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.

View File

@ -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

View File

@ -4,6 +4,5 @@ PROG= apm
MAN= apm.8
MLINKS= apm.8 apmconf.8
MANSUBDIR= /${MACHINE_ARCH}
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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

View File

@ -7,6 +7,4 @@ MAN= asf.8
DPADD= ${LIBKVM}
LDADD= -lkvm
WARNS?= 4
.include <bsd.prog.mk>

View File

@ -13,4 +13,6 @@ MAN= audit.8
DPADD= ${LIBBSM}
LDADD= -lbsm
WARNS?= 5
.include <bsd.prog.mk>

View File

@ -14,4 +14,6 @@ MAN= auditd.8
DPADD= ${LIBBSM} ${LIBAUDITD}
LDADD= -lbsm -lauditd
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -13,4 +13,6 @@ MAN= auditreduce.1
DPADD= ${LIBBSM}
LDADD= -lbsm
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -19,4 +19,6 @@ CFLAGS+= -DENABLE_ALTQ
LDADD+= -lm -lmd -lutil
DPADD+= ${LIBM} ${LIBMD} ${LIBUTIL}
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -3,8 +3,6 @@
PROG= boot0cfg
MAN= boot0cfg.8
WARNS?= 2
DPADD= ${LIBGEOM}
LDADD= -lgeom

View File

@ -2,3 +2,5 @@
# $FreeBSD$
BINDIR?= /usr/sbin
WARNS?= 2

View File

@ -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

View File

@ -10,4 +10,6 @@ CFLAGS+= -I${CONTRIB}/lib
CFLAGS+= -DQUADFMT='"llu"' -DQUADXFMT='"llx"' -DHAVE_STDINT_H
CFLAGS+= -DHAVE_INTTYPES_H
WARNS?= 5
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@
MOD= pf
SRCS= pf_snmp.c
WARNS?= 6
XSYM= begemotPf
DEFS= ${MOD}_tree.def

View File

@ -4,6 +4,4 @@ PROG= btxld
MAN= btxld.8
SRCS= btxld.c elfh.c
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= burncd
MAN= burncd.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,7 +2,7 @@
PROG= cdcontrol
WARNS?= 2
WARNS?= 3
DPADD= ${LIBEDIT} ${LIBTERMCAP}
LDADD= -ledit -ltermcap

View File

@ -3,6 +3,4 @@
PROG= chkgrp
MAN= chkgrp.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -5,6 +5,4 @@ PROG= chown
LINKS= ${BINDIR}/chown /usr/bin/chgrp
MAN= chgrp.1 chown.8
WARNS?= 5
.include <bsd.prog.mk>

View File

@ -4,6 +4,4 @@
PROG= chroot
MAN= chroot.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,6 +4,5 @@ PROG= clear_locks
MAN= clear_locks.8
DPADD= ${LIBRPCSVC}
LDADD= -lrpcsvc
WARNS= 6
.include <bsd.prog.mk>

View File

@ -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}

View File

@ -4,6 +4,4 @@ PROG= cpucontrol
MAN= cpucontrol.8
SRCS= cpucontrol.c intel.c amd.c
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -9,4 +9,6 @@ CFLAGS+= -DLOGIN_CAP -DPAM
DPADD= ${LIBCRON} ${LIBPAM} ${LIBUTIL}
LDADD= ${LIBCRON} ${MINUSLPAM} -lutil
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -2,3 +2,5 @@
# modify to taste
BINDIR?= /usr/bin
WARNS?= 2

View File

@ -17,6 +17,8 @@ NOTYET= ctm_ed.c
LDADD= -lmd
DPADD= ${LIBMD}
WARNS?= 2
.if exists(${.CURDIR}/../../Makefile.inc)
.include "${.CURDIR}/../../Makefile.inc"
.endif

View File

@ -8,4 +8,6 @@ SRCS= ctm_dequeue.c error.c
CFLAGS+= -I${.CURDIR}/../ctm_rmail
WARNS?= 1
.include <bsd.prog.mk>

View File

@ -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 <bsd.prog.mk>

View File

@ -8,4 +8,6 @@ SRCS= ctm_smail.c error.c
CFLAGS+= -I${.CURDIR}/../ctm_rmail
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -6,6 +6,4 @@ MAN= daemon.8
DPADD= ${LIBUTIL}
LDADD= -lutil
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -8,4 +8,6 @@ CFLAGS+= -I${.CURDIR}/../../sys
DPADD= ${LIBKVM}
LDADD= -lkvm
WARNS?= 1
.include <bsd.prog.mk>

View File

@ -3,8 +3,6 @@
PROG= devinfo
MAN= devinfo.8
WARNS?= 2
DPADD= ${LIBDEVINFO}
LDADD= -ldevinfo

View File

@ -3,6 +3,4 @@
PROG= digictl
MAN= digictl.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -3,8 +3,6 @@
PROG= diskinfo
MAN= diskinfo.8
WARNS?= 5
DPADD= ${LIBUTIL}
LDADD= -lutil

View File

@ -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 <bsd.prog.mk>

View File

@ -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 <bsd.prog.mk>

View File

@ -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 <bsd.prog.mk>

View File

@ -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 <bsd.prog.mk>

View File

@ -5,6 +5,5 @@
PROG= dumpcis
MAN= dumpcis.8
SRCS= main.c readcis.c printcis.c
WARNS?= 5
.include <bsd.prog.mk>

View File

@ -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

View File

@ -4,6 +4,4 @@
PROG= edquota
MAN= edquota.8
WARNS?= 4
.include <bsd.prog.mk>

View File

@ -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 <bsd.prog.mk>

View File

@ -11,6 +11,4 @@ MLINKS+= rmextattr.8 setextattr.8
MLINKS+= rmextattr.8 getextattr.8
MLINKS+= rmextattr.8 lsextattr.8
WARNS?= 5
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= extattrctl
MAN= extattrctl.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -20,4 +20,6 @@ SRCS= faithd.c tcp.c ftp.c prefix.c
CFLAGS+= -DHAVE_POLL_H
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@
PROG= fdcontrol
SRCS= fdcontrol.c fdutil.c
WARNS?= 6
CFLAGS+= -I${.CURDIR}/../fdread
MAN= fdcontrol.8

View File

@ -5,7 +5,6 @@
PROG= fdformat
SRCS= fdformat.c fdutil.c
WARNS?= 6
CFLAGS+= -I${.CURDIR}/../fdread
.if ${MACHINE} == "pc98"

View File

@ -3,8 +3,6 @@
PROG= fdread
SRCS= fdread.c fdutil.c
WARNS?= 6
.if ${MACHINE} == "pc98"
CFLAGS+= -DPC98
.endif

View File

@ -8,6 +8,5 @@
# $FreeBSD$
PROG= fdwrite
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -2,8 +2,6 @@
LIBFIFOLOG= ${.OBJDIR}/../lib/libfifolog.a
WARNS?= 6
#LINT= flint
#LINTFLAGS= ${.CURDIR}/../flint.lnt -I/usr/include

View File

@ -22,4 +22,6 @@ CFLAGS+= -I${.CURDIR} \
-DHAVE_WORKING_KQUEUE \
-DVERSION='"1.3b"'
WARNS?= 2
.include <bsd.lib.mk>

View File

@ -3,6 +3,4 @@
PROG= getfmac
MAN= getfmac.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= getpmac
MAN= getpmac.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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

View File

@ -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

View File

@ -7,4 +7,6 @@ MAN= iostat.8
DPADD= ${LIBDEVSTAT} ${LIBKVM} ${LIBM}
LDADD= -ldevstat -lkvm -lm
WARNS?= 1
.include <bsd.prog.mk>

View File

@ -3,4 +3,6 @@
PROG= ip6addrctl
MAN= ip6addrctl.8
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -11,8 +11,6 @@ DPADD= ${LIBPCAP}
MAN= ipfwpcap.8
WARNS?= 6
.include <bsd.prog.mk>
test: $(CMD)

View File

@ -7,8 +7,6 @@ MAN= jail.8
DPADD= ${LIBJAIL} ${LIBUTIL}
LDADD= -ljail -lutil
WARNS?= 6
.if ${MK_INET6_SUPPORT} != "no"
CFLAGS+= -DINET6
.endif

View File

@ -4,6 +4,5 @@ PROG= jexec
MAN= jexec.8
DPADD= ${LIBJAIL} ${LIBUTIL}
LDADD= -ljail -lutil
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -5,6 +5,4 @@ MAN= jls.8
DPADD= ${LIBJAIL}
LDADD= -ljail
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -8,6 +8,5 @@ LDADD= -lkvm
CFLAGS+= -I${.CURDIR}/../../contrib/gcc
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -6,6 +6,4 @@ MAN= lastlogin.8
DPADD= ${LIBULOG}
LDADD= -lulog
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -6,4 +6,6 @@ MAN= lmcconfig.8
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph
WARNS?= 0
.include <bsd.prog.mk>

View File

@ -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 <bsd.lib.mk>

View File

@ -1,3 +1,5 @@
# $FreeBSD$
BINDIR= /usr/libexec/lpr/ru
WARNS?= 3

View File

@ -11,6 +11,8 @@ BINMODE= 2555
CFLAGS+= -I${.CURDIR}/../common_source
WARNS?= 0
DPADD= ${LIBLPR} ${LIBEDIT} ${LIBTERMCAP}
LDADD= ${LIBLPR} -ledit -ltermcap

View File

@ -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}

View File

@ -13,6 +13,8 @@ BINMODE= 6555
CFLAGS+= -I${.CURDIR}/../common_source
WARNS?= 2
DPADD= ${LIBLPR}
LDADD= ${LIBLPR}

View File

@ -3,6 +3,4 @@
PROG= lptcontrol
MAN= lptcontrol.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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

View File

@ -8,7 +8,6 @@ MAN= mailwrapper.8
DPADD= ${LIBUTIL}
LDADD= -lutil
WARNS?= 6
.endif
.if ${MK_MAILWRAPPER} != "no" || ${MK_SENDMAIL} != "no"

View File

@ -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

View File

@ -2,6 +2,5 @@
PROG= memcontrol
MAN= memcontrol.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -3,6 +3,4 @@
PROG= mixer
MAN= mixer.8
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -20,4 +20,6 @@ SRCS= mld6.c
CFLAGS+= -DIPSEC -DUSE_RFC2292BIS
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -6,4 +6,6 @@ SRCS= command.c config.c interface.c util.c
CFLAGS+= -I${.CURDIR}/../../sys
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -2,7 +2,6 @@
PROG= mount_smbfs
SRCS= mount_smbfs.c getmntopts.c
WARNS?= 6
MAN= mount_smbfs.8
MOUNTDIR= ${.CURDIR}/../../sbin/mount

View File

@ -3,8 +3,6 @@
PROG= moused
MAN= moused.8
WARNS?=6
DPADD= ${LIBUTIL} ${LIBM}
LDADD= -lutil -lm

View File

@ -1,6 +1,5 @@
# $FreeBSD$
PROG= mptable
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -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

View File

@ -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}

View File

@ -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}

View File

@ -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}

View File

@ -22,4 +22,6 @@ SRCS= ndp.c gmt2local.c
CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../contrib/tcpdump
CFLAGS+= -D_U_=""
WARNS?= 1
.include <bsd.prog.mk>

View File

@ -4,6 +4,4 @@ PROG= newsyslog
MAN= newsyslog.8 newsyslog.conf.5
SRCS= newsyslog.c ptimes.c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,6 +4,4 @@
PROG= nfsd
MAN= nfsd.8 nfsv4.4 stablerestart.5
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,7 +4,6 @@
PROG= nghook
MAN= nghook.8
SRCS= main.c
WARNS?= 6
DPADD= ${LIBNETGRAPH}
LDADD= -lnetgraph

View File

@ -18,4 +18,6 @@ LIBOPTS= ${.OBJDIR}/../libopts/libopts.a
LIBPARSE= ${.OBJDIR}/../libparse/libparse.a
LIBNTP= ${.OBJDIR}/../libntp/libntp.a
WARNS?= 0
.include "../Makefile.inc"

View File

@ -4,6 +4,4 @@ PROG= nvram
MAN= nvram.8
MANSUBDIR= /powerpc
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -4,6 +4,4 @@ PROG= ofwdump
MAN= ofwdump.8
SRCS= ofwdump.c ofw_util.c
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -7,4 +7,6 @@ MAN= pciconf.8
CFLAGS+= -I${.CURDIR}/../../sys
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -5,7 +5,6 @@ SRCS= main.c perform.c
CFLAGS+= -I${.CURDIR}/../lib
WARNS?= 6
WFORMAT?= 1
DPADD= ${LIBINSTALL} ${LIBMD}

View File

@ -5,7 +5,6 @@ SRCS= main.c perform.c show.c
CFLAGS+= -I${.CURDIR}/../lib
WARNS?= 6
WFORMAT?= 1
DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD}

View File

@ -5,7 +5,6 @@ SRCS= main.c
CFLAGS+= -I${.CURDIR}/../lib
WARNS?= 6
WFORMAT?= 1
DPADD= ${LIBINSTALL} ${LIBFETCH} ${LIBMD}

Some files were not shown because too many files have changed in this diff Show More