From b7946da96b4498519f66f3f5fe72d1474bf13f7d Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 2 Jan 2010 10:27:05 +0000 Subject: [PATCH] Build usr.bin/ with WARNS=6 by default. Also add some missing $FreeBSD$ to keep svn happy. --- usr.bin/Makefile.inc | 4 +--- usr.bin/apply/Makefile | 1 - usr.bin/ar/Makefile | 2 -- usr.bin/at/Makefile | 2 ++ usr.bin/atm/sscop/Makefile | 1 - usr.bin/awk/Makefile | 2 ++ usr.bin/bluetooth/bthost/Makefile | 1 - usr.bin/bsdiff/Makefile.inc | 3 --- usr.bin/bzip2/Makefile | 2 ++ usr.bin/calendar/Makefile | 2 ++ usr.bin/catman/Makefile | 1 - usr.bin/chkey/Makefile | 2 -- usr.bin/chpass/Makefile | 1 - usr.bin/colldef/Makefile | 2 ++ usr.bin/compile_et/Makefile | 2 ++ usr.bin/compress/Makefile | 1 - usr.bin/cpio/Makefile | 1 - usr.bin/cpio/test/Makefile | 1 - usr.bin/cpuset/Makefile | 1 - usr.bin/ctags/Makefile | 2 ++ usr.bin/dig/Makefile | 2 ++ usr.bin/du/Makefile | 1 - usr.bin/elf2aout/Makefile | 1 - usr.bin/elfdump/Makefile | 1 - usr.bin/env/Makefile | 1 - usr.bin/fetch/Makefile | 1 - usr.bin/file2c/Makefile | 1 - usr.bin/find/Makefile | 1 - usr.bin/finger/Makefile | 2 ++ usr.bin/fstat/Makefile | 1 - usr.bin/fsync/Makefile | 1 - usr.bin/ftp/Makefile | 2 ++ usr.bin/gcore/Makefile | 2 ++ usr.bin/gencat/Makefile | 1 - usr.bin/getent/Makefile | 1 - usr.bin/gprof/Makefile | 2 ++ usr.bin/gzip/Makefile | 1 - usr.bin/head/Makefile | 1 - usr.bin/hexdump/Makefile | 1 - usr.bin/host/Makefile | 2 ++ usr.bin/id/Makefile | 1 - usr.bin/ipcrm/Makefile | 2 ++ usr.bin/ipcs/Makefile | 2 ++ usr.bin/kdump/Makefile | 2 ++ usr.bin/keylogin/Makefile | 2 ++ usr.bin/ktrace/Makefile | 2 ++ usr.bin/ktrdump/Makefile | 2 ++ usr.bin/last/Makefile | 2 ++ usr.bin/lastcomm/Makefile | 1 - usr.bin/ldd/Makefile | 1 - usr.bin/leave/Makefile | 2 ++ usr.bin/less/Makefile.common | 1 + usr.bin/lex/Makefile | 2 ++ usr.bin/lex/lib/Makefile | 2 ++ usr.bin/limits/Makefile | 1 - usr.bin/locate/Makefile.inc | 2 ++ usr.bin/locate/locate/Makefile | 2 ++ usr.bin/lock/Makefile | 2 ++ usr.bin/logger/Makefile | 1 - usr.bin/login/Makefile | 2 ++ usr.bin/logins/Makefile | 1 - usr.bin/logname/Makefile | 1 - usr.bin/look/Makefile | 3 +++ usr.bin/lsvfs/Makefile | 1 - usr.bin/m4/Makefile | 2 ++ usr.bin/mail/Makefile | 2 ++ usr.bin/make/Makefile | 1 - usr.bin/minigzip/Makefile | 2 ++ usr.bin/mkfifo/Makefile | 1 - usr.bin/mklocale/Makefile | 1 - usr.bin/mkstr/Makefile | 2 ++ usr.bin/mkuzip/Makefile | 1 - usr.bin/msgs/Makefile | 1 - usr.bin/nc/Makefile | 2 ++ usr.bin/ncplist/Makefile | 2 ++ usr.bin/newkey/Makefile | 2 -- usr.bin/nfsstat/Makefile | 2 ++ usr.bin/nl/Makefile | 2 ++ usr.bin/nohup/Makefile | 1 - usr.bin/nslookup/Makefile | 2 ++ usr.bin/nsupdate/Makefile | 2 ++ usr.bin/opieinfo/Makefile | 2 ++ usr.bin/opiekey/Makefile | 2 ++ usr.bin/opiepasswd/Makefile | 2 ++ usr.bin/passwd/Makefile | 1 - usr.bin/pr/Makefile | 3 +++ usr.bin/printf/Makefile | 1 - usr.bin/procstat/Makefile | 1 - usr.bin/revoke/Makefile | 2 -- usr.bin/rlogin/Makefile | 2 ++ usr.bin/rpcgen/Makefile | 2 -- usr.bin/rpcinfo/Makefile | 2 ++ usr.bin/rsh/Makefile | 2 ++ usr.bin/rup/Makefile | 2 ++ usr.bin/ruptime/Makefile | 3 +++ usr.bin/rusers/Makefile | 1 - usr.bin/rwho/Makefile | 3 +++ usr.bin/sed/Makefile | 2 ++ usr.bin/smbutil/Makefile | 2 ++ usr.bin/sockstat/Makefile | 1 - usr.bin/su/Makefile | 2 ++ usr.bin/systat/Makefile | 2 ++ usr.bin/tail/Makefile | 1 - usr.bin/tar/Makefile | 1 - usr.bin/tar/test/Makefile | 1 - usr.bin/tcopy/Makefile | 2 ++ usr.bin/telnet/Makefile | 2 ++ usr.bin/time/Makefile | 1 - usr.bin/top/Makefile | 2 ++ usr.bin/tr/Makefile | 2 ++ usr.bin/truss/Makefile | 1 - usr.bin/unifdef/Makefile | 1 - usr.bin/unzip/Makefile | 1 - usr.bin/users/Makefile | 2 -- usr.bin/uudecode/Makefile | 1 - usr.bin/uuencode/Makefile | 1 - usr.bin/vacation/Makefile | 2 ++ usr.bin/vgrind/Makefile | 2 ++ usr.bin/vi/Makefile | 2 ++ usr.bin/vmstat/Makefile | 2 ++ usr.bin/w/Makefile | 2 ++ usr.bin/wall/Makefile | 2 -- usr.bin/wc/Makefile | 1 - usr.bin/whereis/Makefile | 1 - usr.bin/who/Makefile | 2 -- usr.bin/write/Makefile | 2 -- usr.bin/xargs/Makefile | 1 - usr.bin/xinstall/Makefile | 1 - usr.bin/xlint/xlint/Makefile | 2 ++ usr.bin/yacc/Makefile | 2 ++ usr.bin/ypcat/Makefile | 2 ++ usr.bin/ypmatch/Makefile | 2 ++ usr.bin/ypwhich/Makefile | 2 ++ 133 files changed, 138 insertions(+), 79 deletions(-) diff --git a/usr.bin/Makefile.inc b/usr.bin/Makefile.inc index 2ee98c34aab5..534349f25155 100644 --- a/usr.bin/Makefile.inc +++ b/usr.bin/Makefile.inc @@ -3,6 +3,4 @@ BINDIR?= /usr/bin -# Commented out for the time being. -# I intend to make this default at some stage. -#WARNS?= 2 +WARNS?= 6 diff --git a/usr.bin/apply/Makefile b/usr.bin/apply/Makefile index 0355588b3c39..ca0f10a2fce8 100644 --- a/usr.bin/apply/Makefile +++ b/usr.bin/apply/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= apply -WARNS?= 4 .include diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index 533f9317d02f..1f00aca1984e 100644 --- a/usr.bin/ar/Makefile +++ b/usr.bin/ar/Makefile @@ -3,8 +3,6 @@ PROG= ar SRCS= ar.c acplex.l acpyacc.y read.c util.c write.c y.tab.h -WARNS?= 5 - DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBELF} LDADD= -larchive -lbz2 -lz -lelf diff --git a/usr.bin/at/Makefile b/usr.bin/at/Makefile index 47d2574e7f5c..75546fc156fa 100644 --- a/usr.bin/at/Makefile +++ b/usr.bin/at/Makefile @@ -11,6 +11,8 @@ MLINKS= at.1 batch.1 \ at.1 atq.1 \ at.1 atrm.1 +WARNS?= 1 + BINOWN= root BINMODE= 4555 CLEANFILES+= at.1 diff --git a/usr.bin/atm/sscop/Makefile b/usr.bin/atm/sscop/Makefile index 16703bb35bd6..36d3dcfc0280 100644 --- a/usr.bin/atm/sscop/Makefile +++ b/usr.bin/atm/sscop/Makefile @@ -6,7 +6,6 @@ CONTRIB= ${.CURDIR}/../../../contrib/ngatm/sscop PROG= sscop SRCS= common.c sscop_main.c -WARNS?= 6 CFLAGS+= -I${CONTRIB} -DUSE_LIBBEGEMOT DPADD= ${LIBBEGEMOT} ${LIBNETGRAPH} ${LIBNGATM} diff --git a/usr.bin/awk/Makefile b/usr.bin/awk/Makefile index 7ec2e575c608..28126154cb3a 100644 --- a/usr.bin/awk/Makefile +++ b/usr.bin/awk/Makefile @@ -8,6 +8,8 @@ SRCS= awkgram.y b.c lex.c lib.c main.c parse.c proctab.c run.c tran.c ytab.h CFLAGS+= -DHAS_ISBLANK -I. -I${AWKSRC} -DFOPEN_MAX=64 +WARNS?= 1 + DPADD= ${LIBM} LDADD= -lm diff --git a/usr.bin/bluetooth/bthost/Makefile b/usr.bin/bluetooth/bthost/Makefile index fe2c47959353..833d10721392 100644 --- a/usr.bin/bluetooth/bthost/Makefile +++ b/usr.bin/bluetooth/bthost/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= bthost -WARNS?= 2 DPADD= ${LIBBLUETOOTH} LDADD= -lbluetooth diff --git a/usr.bin/bsdiff/Makefile.inc b/usr.bin/bsdiff/Makefile.inc index 198d906713fd..265f86d1ed55 100644 --- a/usr.bin/bsdiff/Makefile.inc +++ b/usr.bin/bsdiff/Makefile.inc @@ -1,6 +1,3 @@ # $FreeBSD$ -WARNS?= 6 - .include "../Makefile.inc" - diff --git a/usr.bin/bzip2/Makefile b/usr.bin/bzip2/Makefile index 0460fff19142..c2490a2bb5a1 100644 --- a/usr.bin/bzip2/Makefile +++ b/usr.bin/bzip2/Makefile @@ -6,6 +6,8 @@ BZ2DIR= ${.CURDIR}/../../contrib/bzip2 PROG= bzip2 CFLAGS+= -D_FILE_OFFSET_BITS=64 +WARNS?= 3 + DPADD= ${LIBBZ2} LDADD= -lbz2 diff --git a/usr.bin/calendar/Makefile b/usr.bin/calendar/Makefile index 481713ac9931..27df8b679714 100644 --- a/usr.bin/calendar/Makefile +++ b/usr.bin/calendar/Makefile @@ -9,6 +9,8 @@ DE_LINKS= de_DE.ISO8859-15 FR_LINKS= fr_FR.ISO8859-15 TEXTMODE?= 444 +WARNS?= 3 + beforeinstall: ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${TEXTMODE} \ ${.CURDIR}/calendars/calendar.* ${DESTDIR}${SHAREDIR}/calendar diff --git a/usr.bin/catman/Makefile b/usr.bin/catman/Makefile index d80a5fd8ae49..ab4c01453a1b 100644 --- a/usr.bin/catman/Makefile +++ b/usr.bin/catman/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= catman -WARNS?= 6 .include diff --git a/usr.bin/chkey/Makefile b/usr.bin/chkey/Makefile index 2813ca1a45f0..847e5c960106 100644 --- a/usr.bin/chkey/Makefile +++ b/usr.bin/chkey/Makefile @@ -13,6 +13,4 @@ CFLAGS+= -DYP DPADD= ${LIBRPCSVC} ${LIBMP} ${LIBCRYPTO} LDADD= -lrpcsvc -lmp -lcrypto -WARNS?= 6 - .include diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index e9589562186a..7f7ac510c6bc 100644 --- a/usr.bin/chpass/Makefile +++ b/usr.bin/chpass/Makefile @@ -9,7 +9,6 @@ PROG= chpass SRCS= chpass.c edit.c field.c pw_scan.c table.c util.c BINOWN= root BINMODE=4555 -WARNS?= 5 .if ${MK_NIS} != "no" CFLAGS+= -DYP .endif diff --git a/usr.bin/colldef/Makefile b/usr.bin/colldef/Makefile index 6cb213f48898..5f62bc596b79 100644 --- a/usr.bin/colldef/Makefile +++ b/usr.bin/colldef/Makefile @@ -8,4 +8,6 @@ CFLAGS+=-DCOLLATE_DEBUG -DYY_NO_UNPUT LDADD= -ll DPADD= ${LIBL} +WARNS?= 2 + .include diff --git a/usr.bin/compile_et/Makefile b/usr.bin/compile_et/Makefile index 3d4ab15dfcce..262e696ac1b4 100644 --- a/usr.bin/compile_et/Makefile +++ b/usr.bin/compile_et/Makefile @@ -6,4 +6,6 @@ PROG= compile_et SRCS= compile_et.c parse.y lex.l getarg.c CFLAGS+=-I. -I${.CURDIR}/../../contrib/com_err +WARNS?= 0 + .include diff --git a/usr.bin/compress/Makefile b/usr.bin/compress/Makefile index 45c0814add3f..a586b97fcfcf 100644 --- a/usr.bin/compress/Makefile +++ b/usr.bin/compress/Makefile @@ -5,7 +5,6 @@ PROG= compress SRCS= compress.c zopen.c LINKS= ${BINDIR}/compress ${BINDIR}/uncompress MLINKS= compress.1 uncompress.1 -WARNS?= 6 # XXX zopen is not part of libc # MAN=zopen.3 diff --git a/usr.bin/cpio/Makefile b/usr.bin/cpio/Makefile index c64ab6c6a040..d609780ac9c7 100644 --- a/usr.bin/cpio/Makefile +++ b/usr.bin/cpio/Makefile @@ -5,7 +5,6 @@ PROG= bsdcpio BSDCPIO_VERSION_STRING=2.7.0 SRCS= cpio.c cmdline.c err.c matching.c pathmatch.c -WARNS?= 6 DPADD= ${LIBARCHIVE} ${LIBZ} ${LIBBZ2} CFLAGS+= -DBSDCPIO_VERSION_STRING=\"${BSDCPIO_VERSION_STRING}\" CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" diff --git a/usr.bin/cpio/test/Makefile b/usr.bin/cpio/test/Makefile index 7da5a606226a..ace951698010 100644 --- a/usr.bin/cpio/test/Makefile +++ b/usr.bin/cpio/test/Makefile @@ -53,7 +53,6 @@ CFLAGS+= -I${CPIO_SRCDIR} # Uncomment to link against dmalloc #LDADD+= -L/usr/local/lib -ldmalloc #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC -WARNS=6 check test: bsdcpio_test ${.OBJDIR}/bsdcpio_test -p ${.OBJDIR}/../bsdcpio -r ${.CURDIR} diff --git a/usr.bin/cpuset/Makefile b/usr.bin/cpuset/Makefile index 85a51485a47c..660a0962031b 100644 --- a/usr.bin/cpuset/Makefile +++ b/usr.bin/cpuset/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= cpuset -WARNS?= 6 .include diff --git a/usr.bin/ctags/Makefile b/usr.bin/ctags/Makefile index dc639af6e2e8..be2e93eb6866 100644 --- a/usr.bin/ctags/Makefile +++ b/usr.bin/ctags/Makefile @@ -5,4 +5,6 @@ PROG= ctags SRCS= C.c ctags.c fortran.c lisp.c print.c tree.c yacc.c CFLAGS+=-I${.CURDIR} +WARNS?= 1 + .include diff --git a/usr.bin/dig/Makefile b/usr.bin/dig/Makefile index 585e3794b193..ec11dc483520 100644 --- a/usr.bin/dig/Makefile +++ b/usr.bin/dig/Makefile @@ -20,6 +20,8 @@ CFLAGS+= -DWITH_IDN -I/usr/local/include CFLAGS+= -L/usr/local/lib -lidnkit -R/usr/local/lib -liconv .endif +WARNS?= 1 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.bin/du/Makefile b/usr.bin/du/Makefile index 12e80b9da3d1..f614866da6de 100644 --- a/usr.bin/du/Makefile +++ b/usr.bin/du/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= du -WARNS?= 6 DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/usr.bin/elf2aout/Makefile b/usr.bin/elf2aout/Makefile index 4ba44e7e3dc1..2959539add7d 100644 --- a/usr.bin/elf2aout/Makefile +++ b/usr.bin/elf2aout/Makefile @@ -3,6 +3,5 @@ PROG= elf2aout NO_WERROR= -WARNS?= 5 .include diff --git a/usr.bin/elfdump/Makefile b/usr.bin/elfdump/Makefile index 95ce514b3ace..22e1ca94be0c 100644 --- a/usr.bin/elfdump/Makefile +++ b/usr.bin/elfdump/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= elfdump -WARNS?= 5 .include diff --git a/usr.bin/env/Makefile b/usr.bin/env/Makefile index bc1eea49153a..89ab59472630 100644 --- a/usr.bin/env/Makefile +++ b/usr.bin/env/Makefile @@ -3,6 +3,5 @@ PROG= env SRCS= env.c envopts.c -WARNS?= 6 .include diff --git a/usr.bin/fetch/Makefile b/usr.bin/fetch/Makefile index c422af8afb21..5686fc60915e 100644 --- a/usr.bin/fetch/Makefile +++ b/usr.bin/fetch/Makefile @@ -4,7 +4,6 @@ PROG= fetch CSTD?= c99 -WARNS?= 6 DPADD= ${LIBFETCH} LDADD= -lfetch .if ${MK_OPENSSL} != "no" diff --git a/usr.bin/file2c/Makefile b/usr.bin/file2c/Makefile index c3c6ddc7612d..82b7e97662ef 100644 --- a/usr.bin/file2c/Makefile +++ b/usr.bin/file2c/Makefile @@ -1,5 +1,4 @@ # $FreeBSD$ PROG= file2c -WARNS?= 6 .include diff --git a/usr.bin/find/Makefile b/usr.bin/find/Makefile index b20dc0346f55..120826064dff 100644 --- a/usr.bin/find/Makefile +++ b/usr.bin/find/Makefile @@ -4,7 +4,6 @@ PROG= find SRCS= find.c function.c ls.c main.c misc.c operator.c option.c \ getdate.y -WARNS?=6 CFLAGS+= -DHAVE_SYS_TIMEB_H -I${.CURDIR} YFLAGS= diff --git a/usr.bin/finger/Makefile b/usr.bin/finger/Makefile index 8c5780ca7864..a7db06309140 100644 --- a/usr.bin/finger/Makefile +++ b/usr.bin/finger/Makefile @@ -5,6 +5,8 @@ PROG= finger SRCS= finger.c lprint.c net.c sprint.c util.c MAN= finger.1 finger.conf.5 +WARNS?= 2 + DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.bin/fstat/Makefile b/usr.bin/fstat/Makefile index d55fce479867..23e907b9b5c4 100644 --- a/usr.bin/fstat/Makefile +++ b/usr.bin/fstat/Makefile @@ -9,7 +9,6 @@ DPADD= ${LIBKVM} LDADD= -lkvm BINGRP= kmem BINMODE=2555 -WARNS?= 6 CFLAGS+=-D_KVM_VNODE diff --git a/usr.bin/fsync/Makefile b/usr.bin/fsync/Makefile index 42aa6ddec665..c9bc5249ee6f 100644 --- a/usr.bin/fsync/Makefile +++ b/usr.bin/fsync/Makefile @@ -2,5 +2,4 @@ PROG= fsync -WARNS?= 6 .include diff --git a/usr.bin/ftp/Makefile b/usr.bin/ftp/Makefile index c2fe59cd4b1f..6f42e69a3289 100644 --- a/usr.bin/ftp/Makefile +++ b/usr.bin/ftp/Makefile @@ -23,6 +23,8 @@ CFLAGS+= -I${.CURDIR} -I${LUKEMFTP} LDADD= -ledit -ltermcap -lutil DPADD= ${LIBEDIT} ${LIBTERMCAP} ${LIBUTIL} +WARNS?= 2 + LINKS= ${BINDIR}/ftp ${BINDIR}/pftp \ ${BINDIR}/ftp ${BINDIR}/gate-ftp MLINKS= ftp.1 pftp.1 \ diff --git a/usr.bin/gcore/Makefile b/usr.bin/gcore/Makefile index 199d195baf2c..358c7472f786 100644 --- a/usr.bin/gcore/Makefile +++ b/usr.bin/gcore/Makefile @@ -5,4 +5,6 @@ LDADD+= -lutil PROG= gcore SRCS= elfcore.c gcore.c +WARNS?= 1 + .include diff --git a/usr.bin/gencat/Makefile b/usr.bin/gencat/Makefile index a6c9991bb5b9..2cf86df59e1b 100644 --- a/usr.bin/gencat/Makefile +++ b/usr.bin/gencat/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= gencat -WARNS?= 6 .include diff --git a/usr.bin/getent/Makefile b/usr.bin/getent/Makefile index 6cc3d56cfd1e..85bc1b1ec71b 100644 --- a/usr.bin/getent/Makefile +++ b/usr.bin/getent/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= getent -WARNS?= 3 .include diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index a24d9cda6c81..506232597a42 100644 --- a/usr.bin/gprof/Makefile +++ b/usr.bin/gprof/Makefile @@ -7,4 +7,6 @@ SRCS= gprof.c aout.c arcs.c dfn.c elf.c lookup.c hertz.c \ FILES= gprof.flat gprof.callg FILESDIR= ${SHAREDIR}/misc +WARNS?= 1 + .include diff --git a/usr.bin/gzip/Makefile b/usr.bin/gzip/Makefile index dae5f842a32e..048033738756 100644 --- a/usr.bin/gzip/Makefile +++ b/usr.bin/gzip/Makefile @@ -8,7 +8,6 @@ MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zmore.1 znew.1 DPADD= ${LIBZ} LDADD= -lz -WARNS?= 6 .if ${MK_BZIP2_SUPPORT} != "no" DPADD+= ${LIBBZ2} diff --git a/usr.bin/head/Makefile b/usr.bin/head/Makefile index 002b3f385b3e..60b0a2f33ce6 100644 --- a/usr.bin/head/Makefile +++ b/usr.bin/head/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= head -WARNS= 6 .include diff --git a/usr.bin/hexdump/Makefile b/usr.bin/hexdump/Makefile index 3252fc9af147..4cd3cc5dc62f 100644 --- a/usr.bin/hexdump/Makefile +++ b/usr.bin/hexdump/Makefile @@ -7,6 +7,5 @@ MAN= hexdump.1 od.1 MLINKS= hexdump.1 hd.1 LINKS= ${BINDIR}/hexdump ${BINDIR}/od LINKS+= ${BINDIR}/hexdump ${BINDIR}/hd -WARNS?= 6 .include diff --git a/usr.bin/host/Makefile b/usr.bin/host/Makefile index 986191466a9b..e2909e13782c 100644 --- a/usr.bin/host/Makefile +++ b/usr.bin/host/Makefile @@ -15,6 +15,8 @@ SRCS+= dighost.c host.c CFLAGS+= -I${SRCDIR}/include CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include +WARNS?= 1 + DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} diff --git a/usr.bin/id/Makefile b/usr.bin/id/Makefile index 96c162f7565a..7d78b50c7440 100644 --- a/usr.bin/id/Makefile +++ b/usr.bin/id/Makefile @@ -4,7 +4,6 @@ .include PROG= id -WARNS?= 6 LINKS= ${BINDIR}/id ${BINDIR}/groups LINKS+= ${BINDIR}/id ${BINDIR}/whoami MAN= id.1 groups.1 whoami.1 diff --git a/usr.bin/ipcrm/Makefile b/usr.bin/ipcrm/Makefile index 47e4ccc8e285..f55311c11761 100644 --- a/usr.bin/ipcrm/Makefile +++ b/usr.bin/ipcrm/Makefile @@ -7,4 +7,6 @@ LDADD= -lkvm CFLAGS+=-I${.CURDIR}/../ipcs .PATH: ${.CURDIR}/../ipcs +WARNS?= 0 + .include diff --git a/usr.bin/ipcs/Makefile b/usr.bin/ipcs/Makefile index 8ee1d4324e5d..0d422e189f62 100644 --- a/usr.bin/ipcs/Makefile +++ b/usr.bin/ipcs/Makefile @@ -5,4 +5,6 @@ SRCS= ipcs.c ipc.c DPADD= ${LIBKVM} LDADD= -lkvm +WARNS?= 1 + .include diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile index 2ca8561c4eb9..832b2dc20ac9 100644 --- a/usr.bin/kdump/Makefile +++ b/usr.bin/kdump/Makefile @@ -7,6 +7,8 @@ PROG= kdump SRCS= kdump.c ioctl.c kdump_subr.c subr.c CFLAGS+= -I${.CURDIR}/../ktrace -I${.CURDIR} -I${.CURDIR}/../.. +WARNS?= 0 + CLEANFILES= ioctl.c kdump_subr.c ioctl.c: mkioctls diff --git a/usr.bin/keylogin/Makefile b/usr.bin/keylogin/Makefile index bf279eb25b22..4c03051a48f6 100644 --- a/usr.bin/keylogin/Makefile +++ b/usr.bin/keylogin/Makefile @@ -5,4 +5,6 @@ PROG= keylogin DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc +WARNS?= 0 + .include diff --git a/usr.bin/ktrace/Makefile b/usr.bin/ktrace/Makefile index c00bb7510459..267992353ae7 100644 --- a/usr.bin/ktrace/Makefile +++ b/usr.bin/ktrace/Makefile @@ -5,4 +5,6 @@ PROG= ktrace SRCS= ktrace.c subr.c MLINKS= ktrace.1 trace.1 +WARNS?= 4 + .include diff --git a/usr.bin/ktrdump/Makefile b/usr.bin/ktrdump/Makefile index 6b5ff127165f..c30dc3d6d7e3 100644 --- a/usr.bin/ktrdump/Makefile +++ b/usr.bin/ktrdump/Makefile @@ -5,4 +5,6 @@ DPADD= ${LIBKVM} LDADD= -lkvm MAN= ktrdump.8 +WARNS?= 2 + .include diff --git a/usr.bin/last/Makefile b/usr.bin/last/Makefile index f7e88115e9b1..0bd2f05eb27e 100644 --- a/usr.bin/last/Makefile +++ b/usr.bin/last/Makefile @@ -3,4 +3,6 @@ PROG= last +WARNS?= 1 + .include diff --git a/usr.bin/lastcomm/Makefile b/usr.bin/lastcomm/Makefile index c79cd7442a4c..84708d9fb413 100644 --- a/usr.bin/lastcomm/Makefile +++ b/usr.bin/lastcomm/Makefile @@ -3,6 +3,5 @@ PROG= lastcomm SRCS= lastcomm.c readrec.c -WARNS?= 6 .include diff --git a/usr.bin/ldd/Makefile b/usr.bin/ldd/Makefile index 357f9f37c770..cd172280d783 100644 --- a/usr.bin/ldd/Makefile +++ b/usr.bin/ldd/Makefile @@ -5,6 +5,5 @@ SRCS= ldd.c .if ${MACHINE_ARCH} == "i386" SRCS+= sods.c .endif -WARNS?= 6 .include diff --git a/usr.bin/leave/Makefile b/usr.bin/leave/Makefile index 859c11cbf845..548479768a06 100644 --- a/usr.bin/leave/Makefile +++ b/usr.bin/leave/Makefile @@ -3,4 +3,6 @@ PROG= leave +WARNS?= 1 + .include diff --git a/usr.bin/less/Makefile.common b/usr.bin/less/Makefile.common index fcc6ccfa1ce3..cffb85a1f30b 100644 --- a/usr.bin/less/Makefile.common +++ b/usr.bin/less/Makefile.common @@ -4,6 +4,7 @@ LSDIR= ${.CURDIR}/../../contrib/less .PATH: ${LSDIR} CFLAGS+=-I${.CURDIR}/../less -I${LSDIR} +WARNS?= 1 .SUFFIXES: .nro .1 diff --git a/usr.bin/lex/Makefile b/usr.bin/lex/Makefile index 6d0ea5b44ec2..e16568fda122 100644 --- a/usr.bin/lex/Makefile +++ b/usr.bin/lex/Makefile @@ -24,6 +24,8 @@ MLINKS+= lex.1 flex.1 MLINKS+= lex.1 flex++.1 MLINKS+= lex.1 lex++.1 +WARNS?= 2 + CLEANFILES= scan.c skel.c SUBDIR= lib diff --git a/usr.bin/lex/lib/Makefile b/usr.bin/lex/lib/Makefile index dcc75185c044..b43d803e2220 100644 --- a/usr.bin/lex/lib/Makefile +++ b/usr.bin/lex/lib/Makefile @@ -6,6 +6,8 @@ LIB= ln SRCS= libmain.c libyywrap.c NO_PIC= +WARNS?= 2 + .if ${MK_INSTALLLIB} != "no" LINKS= ${LIBDIR}/libln.a ${LIBDIR}/libl.a LINKS+= ${LIBDIR}/libln.a ${LIBDIR}/libfl.a diff --git a/usr.bin/limits/Makefile b/usr.bin/limits/Makefile index 5999cdbe060c..013317824db1 100644 --- a/usr.bin/limits/Makefile +++ b/usr.bin/limits/Makefile @@ -3,6 +3,5 @@ PROG= limits DPADD= ${LIBUTIL} LDADD= -lutil -WARNS?= 6 .include diff --git a/usr.bin/locate/Makefile.inc b/usr.bin/locate/Makefile.inc index 48174083d848..5ce397d85406 100644 --- a/usr.bin/locate/Makefile.inc +++ b/usr.bin/locate/Makefile.inc @@ -1,3 +1,5 @@ # $FreeBSD$ LIBEXECDIR?= /usr/libexec + +WARNS?= 0 diff --git a/usr.bin/locate/locate/Makefile b/usr.bin/locate/locate/Makefile index 9a618da4e8fa..a139ff282028 100644 --- a/usr.bin/locate/locate/Makefile +++ b/usr.bin/locate/locate/Makefile @@ -7,6 +7,8 @@ CFLAGS+= -I${.CURDIR} -DMMAP # -DDEBUG (print time) -O2 (10% faster) SCRIPTS=updatedb.sh mklocatedb.sh concatdb.sh MAN= locate.1 locate.updatedb.8 +WARNS?= 2 + SCRIPTSDIR= ${LIBEXECDIR} .for script in ${SCRIPTS} SCRIPTSNAME_${script}= locate.${script:R} diff --git a/usr.bin/lock/Makefile b/usr.bin/lock/Makefile index dc09a87b1b9c..8093ca51ba1d 100644 --- a/usr.bin/lock/Makefile +++ b/usr.bin/lock/Makefile @@ -7,4 +7,6 @@ BINMODE=4555 DPADD= ${LIBCRYPT} LDADD= -lcrypt +WARNS?= 1 + .include diff --git a/usr.bin/logger/Makefile b/usr.bin/logger/Makefile index 6ff722452793..922192ce919f 100644 --- a/usr.bin/logger/Makefile +++ b/usr.bin/logger/Makefile @@ -4,7 +4,6 @@ .include PROG= logger -WARNS?= 6 .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 22c73b9993d9..bd34ed9c6269 100644 --- a/usr.bin/login/Makefile +++ b/usr.bin/login/Makefile @@ -9,6 +9,8 @@ CFLAGS+=-DLOGALL DPADD= ${LIBUTIL} ${LIBPAM} LDADD= -lutil ${MINUSLPAM} +WARNS?= 5 + .if ${MK_AUDIT} != "no" SRCS+= login_audit.c CFLAGS+= -DUSE_BSM_AUDIT diff --git a/usr.bin/logins/Makefile b/usr.bin/logins/Makefile index 42840fb28b9c..ad88cd926140 100644 --- a/usr.bin/logins/Makefile +++ b/usr.bin/logins/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= logins -WARNS?= 6 .include diff --git a/usr.bin/logname/Makefile b/usr.bin/logname/Makefile index 4e910ce73297..875df2c0abf6 100644 --- a/usr.bin/logname/Makefile +++ b/usr.bin/logname/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= logname -WARNS?= 6 .include diff --git a/usr.bin/look/Makefile b/usr.bin/look/Makefile index 64d778891fba..a62003922094 100644 --- a/usr.bin/look/Makefile +++ b/usr.bin/look/Makefile @@ -1,5 +1,8 @@ # @(#)Makefile 8.1 (Berkeley) 6/9/93 +# $FreeBSD$ PROG= look +WARNS?= 2 + .include diff --git a/usr.bin/lsvfs/Makefile b/usr.bin/lsvfs/Makefile index 0c33583257cf..324b6fd0746d 100644 --- a/usr.bin/lsvfs/Makefile +++ b/usr.bin/lsvfs/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= lsvfs -WARNS?= 6 .include diff --git a/usr.bin/m4/Makefile b/usr.bin/m4/Makefile index 702b3f3d2444..feceb0ca80d1 100644 --- a/usr.bin/m4/Makefile +++ b/usr.bin/m4/Makefile @@ -9,4 +9,6 @@ CFLAGS+=-DEXTENDED SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c +WARNS?= 0 + .include diff --git a/usr.bin/mail/Makefile b/usr.bin/mail/Makefile index 5fa455b19d3a..da3e4336b4c7 100644 --- a/usr.bin/mail/Makefile +++ b/usr.bin/mail/Makefile @@ -11,6 +11,8 @@ EFILES= mail.rc LINKS= ${BINDIR}/mail ${BINDIR}/Mail ${BINDIR}/mail ${BINDIR}/mailx MLINKS= mail.1 Mail.1 mail.1 mailx.1 +WARNS?= 1 + .PATH: ${.CURDIR}/misc etc-mailrc: diff --git a/usr.bin/make/Makefile b/usr.bin/make/Makefile index deb076f90104..c58138580ae9 100644 --- a/usr.bin/make/Makefile +++ b/usr.bin/make/Makefile @@ -8,7 +8,6 @@ SRCS= arch.c buf.c cond.c dir.c for.c hash.c hash_tables.c job.c \ lst.c main.c make.c parse.c proc.c shell.c str.c suff.c targ.c \ util.c var.c -WARNS?= 6 NO_SHARED?= YES CFLAGS+=-DMAKE_VERSION=\"5200408120\" diff --git a/usr.bin/minigzip/Makefile b/usr.bin/minigzip/Makefile index 226ba7617985..9a0ab9560fec 100644 --- a/usr.bin/minigzip/Makefile +++ b/usr.bin/minigzip/Makefile @@ -5,4 +5,6 @@ LDADD= -lz DPADD= ${LIBZ} .PATH: ${.CURDIR}/../../lib/libz +WARNS?= 5 + .include diff --git a/usr.bin/mkfifo/Makefile b/usr.bin/mkfifo/Makefile index bab308b133f6..30f013ecea41 100644 --- a/usr.bin/mkfifo/Makefile +++ b/usr.bin/mkfifo/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= mkfifo -WARNS?= 6 .include diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile index 9873d4e32fc3..e75fe99bbba5 100644 --- a/usr.bin/mklocale/Makefile +++ b/usr.bin/mklocale/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= mklocale -WARNS?= 6 SRCS= yacc.y lex.l y.tab.h CFLAGS+= -I. -I${.CURDIR} -I${.CURDIR}/../../lib/libc/locale diff --git a/usr.bin/mkstr/Makefile b/usr.bin/mkstr/Makefile index 805c013d4a97..b4e36209ffcd 100644 --- a/usr.bin/mkstr/Makefile +++ b/usr.bin/mkstr/Makefile @@ -3,4 +3,6 @@ PROG= mkstr +WARNS?= 2 + .include diff --git a/usr.bin/mkuzip/Makefile b/usr.bin/mkuzip/Makefile index 11ed0831f14c..c5eac201776b 100644 --- a/usr.bin/mkuzip/Makefile +++ b/usr.bin/mkuzip/Makefile @@ -6,6 +6,5 @@ MAN= mkuzip.8 DPADD= ${LIBZ} LDADD= -lz -WARNS?= 6 .include diff --git a/usr.bin/msgs/Makefile b/usr.bin/msgs/Makefile index 9f59c6a598cc..21cb15155568 100644 --- a/usr.bin/msgs/Makefile +++ b/usr.bin/msgs/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= msgs -WARNS?= 6 DPADD= ${LIBTERMCAP} LDADD= -ltermcap diff --git a/usr.bin/nc/Makefile b/usr.bin/nc/Makefile index a4400bcddc90..84d20d3f2e83 100644 --- a/usr.bin/nc/Makefile +++ b/usr.bin/nc/Makefile @@ -9,4 +9,6 @@ CFLAGS+=-DIPSEC LDADD= -lipsec DPADD= ${LIBIPSEC} +WARNS?= 1 + .include diff --git a/usr.bin/ncplist/Makefile b/usr.bin/ncplist/Makefile index 8e6d18991a4f..b5baed47d7b2 100644 --- a/usr.bin/ncplist/Makefile +++ b/usr.bin/ncplist/Makefile @@ -2,6 +2,8 @@ PROG= ncplist +WARNS?= 0 + DPADD= ${LIBNCP} ${LIBIPX} LDADD= -lncp -lipx diff --git a/usr.bin/newkey/Makefile b/usr.bin/newkey/Makefile index 1460f8719419..b3b5b51d8c9f 100644 --- a/usr.bin/newkey/Makefile +++ b/usr.bin/newkey/Makefile @@ -11,6 +11,4 @@ MAN= newkey.8 DPADD= ${LIBRPCSVC} ${LIBMP} ${LIBCRYPTO} LDADD= -lrpcsvc -lmp -lcrypto -WARNS?= 6 - .include diff --git a/usr.bin/nfsstat/Makefile b/usr.bin/nfsstat/Makefile index ce4c7c6136fb..d31db0aaf806 100644 --- a/usr.bin/nfsstat/Makefile +++ b/usr.bin/nfsstat/Makefile @@ -6,4 +6,6 @@ CFLAGS+=-DNFS DPADD= ${LIBKVM} LDADD= -lkvm +WARNS?= 3 + .include diff --git a/usr.bin/nl/Makefile b/usr.bin/nl/Makefile index 9b1f292dfbee..07bef878c44e 100644 --- a/usr.bin/nl/Makefile +++ b/usr.bin/nl/Makefile @@ -2,4 +2,6 @@ PROG= nl +WARNS?= 2 + .include diff --git a/usr.bin/nohup/Makefile b/usr.bin/nohup/Makefile index cd635cefa526..5ec4057d30a5 100644 --- a/usr.bin/nohup/Makefile +++ b/usr.bin/nohup/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= nohup -WARNS?= 4 .include diff --git a/usr.bin/nslookup/Makefile b/usr.bin/nslookup/Makefile index 004efa2def2a..b3ba117cf8aa 100644 --- a/usr.bin/nslookup/Makefile +++ b/usr.bin/nslookup/Makefile @@ -18,6 +18,8 @@ CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 1 + MANFILTER= sed -e "s@^host \[server\]@\\\fBhost\\\fR \\\fI[server]\\\fR@" .include diff --git a/usr.bin/nsupdate/Makefile b/usr.bin/nsupdate/Makefile index 0b81c5eb6643..941c7f30fbff 100644 --- a/usr.bin/nsupdate/Makefile +++ b/usr.bin/nsupdate/Makefile @@ -18,6 +18,8 @@ CFLAGS+= -I${BIND_DIR}/lib/isc/${ISC_ATOMIC_ARCH}/include DPADD+= ${BIND_DPADD} ${CRYPTO_DPADD} ${PTHREAD_DPADD} LDADD+= ${BIND_LDADD} ${CRYPTO_LDADD} ${PTHREAD_LDADD} +WARNS?= 1 + MAN= nsupdate.1 MANFILTER= sed -e "s@/etc/named\.conf@/etc/namedb/named.conf@g" \ diff --git a/usr.bin/opieinfo/Makefile b/usr.bin/opieinfo/Makefile index 0375111dbfba..b3ba166d7f69 100644 --- a/usr.bin/opieinfo/Makefile +++ b/usr.bin/opieinfo/Makefile @@ -8,6 +8,8 @@ CFLAGS+=-I${.CURDIR}/../../lib/libopie CFLAGS+=-I${OPIE_DIST} CFLAGS+=-DINSECURE_OVERRIDE +WARNS?= 0 + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd diff --git a/usr.bin/opiekey/Makefile b/usr.bin/opiekey/Makefile index 215c86b4511e..e017f4d044a5 100644 --- a/usr.bin/opiekey/Makefile +++ b/usr.bin/opiekey/Makefile @@ -8,6 +8,8 @@ CFLAGS+=-I${.CURDIR}/../../lib/libopie CFLAGS+=-I${OPIE_DIST} CFLAGS+=-DINSECURE_OVERRIDE +WARNS?= 0 + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd diff --git a/usr.bin/opiepasswd/Makefile b/usr.bin/opiepasswd/Makefile index 0d75a2113dc1..b05e3b21e938 100644 --- a/usr.bin/opiepasswd/Makefile +++ b/usr.bin/opiepasswd/Makefile @@ -8,6 +8,8 @@ CFLAGS+=-I${.CURDIR}/../../lib/libopie CFLAGS+=-I${OPIE_DIST} CFLAGS+=-DINSECURE_OVERRIDE +WARNS?= 0 + DPADD= ${LIBOPIE} ${LIBMD} LDADD= -lopie -lmd diff --git a/usr.bin/passwd/Makefile b/usr.bin/passwd/Makefile index a1ce76b48117..7aeee564e38a 100644 --- a/usr.bin/passwd/Makefile +++ b/usr.bin/passwd/Makefile @@ -12,7 +12,6 @@ LDADD = ${MINUSLPAM} LINKS = ${BINDIR}/passwd ${BINDIR}/yppasswd MLINKS = passwd.1 yppasswd.1 .endif -WARNS ?= 4 beforeinstall: .for i in passwd yppasswd diff --git a/usr.bin/pr/Makefile b/usr.bin/pr/Makefile index 70a921d2139b..88ec7b45b887 100644 --- a/usr.bin/pr/Makefile +++ b/usr.bin/pr/Makefile @@ -1,6 +1,9 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= pr SRCS= pr.c egetopt.c +WARNS?= 2 + .include diff --git a/usr.bin/printf/Makefile b/usr.bin/printf/Makefile index 78cdd0d13019..c91c4e3f53c1 100644 --- a/usr.bin/printf/Makefile +++ b/usr.bin/printf/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= printf -WARNS?= 6 .include diff --git a/usr.bin/procstat/Makefile b/usr.bin/procstat/Makefile index 6cb589565183..1c187b04bd24 100644 --- a/usr.bin/procstat/Makefile +++ b/usr.bin/procstat/Makefile @@ -14,6 +14,5 @@ SRCS= procstat.c \ LDADD+= -lutil DPADD+= ${LIBUTIL} -WARNS?= 4 .include diff --git a/usr.bin/revoke/Makefile b/usr.bin/revoke/Makefile index b3c4ee690a65..92fe2218b189 100644 --- a/usr.bin/revoke/Makefile +++ b/usr.bin/revoke/Makefile @@ -2,6 +2,4 @@ PROG= revoke -WARNS?= 6 - .include diff --git a/usr.bin/rlogin/Makefile b/usr.bin/rlogin/Makefile index 195bffbb0b15..abf4a826a541 100644 --- a/usr.bin/rlogin/Makefile +++ b/usr.bin/rlogin/Makefile @@ -7,4 +7,6 @@ BINOWN= root BINMODE=4555 PRECIOUSPROG= +WARNS?= 3 + .include diff --git a/usr.bin/rpcgen/Makefile b/usr.bin/rpcgen/Makefile index c298820e343a..f78fa64968fd 100644 --- a/usr.bin/rpcgen/Makefile +++ b/usr.bin/rpcgen/Makefile @@ -4,6 +4,4 @@ PROG= rpcgen SRCS= rpc_main.c rpc_clntout.c rpc_cout.c rpc_hout.c rpc_parse.c \ rpc_sample.c rpc_scan.c rpc_svcout.c rpc_tblout.c rpc_util.c -WARNS?= 2 - .include diff --git a/usr.bin/rpcinfo/Makefile b/usr.bin/rpcinfo/Makefile index c89b5b3cbe56..3c8e51c000c3 100644 --- a/usr.bin/rpcinfo/Makefile +++ b/usr.bin/rpcinfo/Makefile @@ -7,4 +7,6 @@ MAN= rpcinfo.8 CFLAGS+= -DPORTMAP +WARNS?= 2 + .include diff --git a/usr.bin/rsh/Makefile b/usr.bin/rsh/Makefile index cf052f71efa7..5c6951cd0745 100644 --- a/usr.bin/rsh/Makefile +++ b/usr.bin/rsh/Makefile @@ -4,6 +4,8 @@ PROG= rsh CFLAGS+=-I${.CURDIR}/../../libexec/rlogind +WARNS?= 2 + BINOWN= root BINMODE=4555 PRECIOUSPROG= diff --git a/usr.bin/rup/Makefile b/usr.bin/rup/Makefile index 6d329774b711..e87220168c22 100644 --- a/usr.bin/rup/Makefile +++ b/usr.bin/rup/Makefile @@ -2,6 +2,8 @@ PROG= rup +WARNS?= 1 + DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.bin/ruptime/Makefile b/usr.bin/ruptime/Makefile index 57f1e15ee0d1..351d0d8a181d 100644 --- a/usr.bin/ruptime/Makefile +++ b/usr.bin/ruptime/Makefile @@ -1,5 +1,8 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= ruptime +WARNS?= 3 + .include diff --git a/usr.bin/rusers/Makefile b/usr.bin/rusers/Makefile index 21d0ce24a706..6cb39acd29e4 100644 --- a/usr.bin/rusers/Makefile +++ b/usr.bin/rusers/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG = rusers -WARNS?= 6 DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc diff --git a/usr.bin/rwho/Makefile b/usr.bin/rwho/Makefile index 328aa38bcb98..aee9ff765f73 100644 --- a/usr.bin/rwho/Makefile +++ b/usr.bin/rwho/Makefile @@ -1,5 +1,8 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 +# $FreeBSD$ PROG= rwho +WARNS?= 1 + .include diff --git a/usr.bin/sed/Makefile b/usr.bin/sed/Makefile index 9d9886f3688c..1fbce17d5fb7 100644 --- a/usr.bin/sed/Makefile +++ b/usr.bin/sed/Makefile @@ -4,4 +4,6 @@ PROG= sed SRCS= compile.c main.c misc.c process.c +WARNS?= 2 + .include diff --git a/usr.bin/smbutil/Makefile b/usr.bin/smbutil/Makefile index 13b5078e0411..19ac5fd7343a 100644 --- a/usr.bin/smbutil/Makefile +++ b/usr.bin/smbutil/Makefile @@ -9,6 +9,8 @@ LDADD= -lsmb -lkiconv CONTRIBDIR= ${.CURDIR}/../../contrib/smbfs CFLAGS+= -I${CONTRIBDIR}/include +WARNS?= 0 + .PATH: ${CONTRIBDIR}/smbutil .include diff --git a/usr.bin/sockstat/Makefile b/usr.bin/sockstat/Makefile index 55e702577e6c..8093367fa2d8 100644 --- a/usr.bin/sockstat/Makefile +++ b/usr.bin/sockstat/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= sockstat -WARNS?= 4 .include diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile index 25216cf44f1d..0002e869c471 100644 --- a/usr.bin/su/Makefile +++ b/usr.bin/su/Makefile @@ -5,6 +5,8 @@ PROG= su +WARNS?= 5 + DPADD= ${LIBUTIL} ${LIBPAM} LDADD= -lutil ${MINUSLPAM} diff --git a/usr.bin/systat/Makefile b/usr.bin/systat/Makefile index d89399ca2238..5ecac6e00965 100644 --- a/usr.bin/systat/Makefile +++ b/usr.bin/systat/Makefile @@ -14,6 +14,8 @@ SRCS+= icmp6.c ip6.c CFLAGS+= -DINET6 .endif +WARNS?= 0 + DPADD= ${LIBCURSES} ${LIBM} ${LIBDEVSTAT} ${LIBKVM} ${LIBULOG} LDADD= -lcursesw -lm -ldevstat -lkvm -lulog diff --git a/usr.bin/tail/Makefile b/usr.bin/tail/Makefile index c8166936983d..672cbed008e6 100644 --- a/usr.bin/tail/Makefile +++ b/usr.bin/tail/Makefile @@ -3,6 +3,5 @@ PROG= tail SRCS= forward.c misc.c read.c reverse.c tail.c -WARNS?= 4 .include diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile index 22f8ff795179..7234845bbfd8 100644 --- a/usr.bin/tar/Makefile +++ b/usr.bin/tar/Makefile @@ -4,7 +4,6 @@ PROG= bsdtar BSDTAR_VERSION_STRING=2.7.0 SRCS= bsdtar.c cmdline.c getdate.c matching.c read.c siginfo.c subst.c tree.c util.c write.c -WARNS?= 5 DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} LDADD= -larchive -lbz2 -lz -lmd .if ${MK_OPENSSL} != "no" diff --git a/usr.bin/tar/test/Makefile b/usr.bin/tar/test/Makefile index 2f6f05665cdb..3880be051d2a 100644 --- a/usr.bin/tar/test/Makefile +++ b/usr.bin/tar/test/Makefile @@ -45,7 +45,6 @@ CFLAGS+= -I${TAR_SRCDIR} # Uncomment to link against dmalloc #LDADD+= -L/usr/local/lib -ldmalloc #CFLAGS+= -I/usr/local/include -DUSE_DMALLOC -WARNS=6 check test: bsdtar_test ./bsdtar_test -p ${.OBJDIR}/../bsdtar -r ${.CURDIR} diff --git a/usr.bin/tcopy/Makefile b/usr.bin/tcopy/Makefile index 1bae0b229420..feb57695c1ea 100644 --- a/usr.bin/tcopy/Makefile +++ b/usr.bin/tcopy/Makefile @@ -3,4 +3,6 @@ PROG= tcopy +WARNS?= 1 + .include diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile index ee112ffa06c8..0ef55c50e296 100644 --- a/usr.bin/telnet/Makefile +++ b/usr.bin/telnet/Makefile @@ -17,6 +17,8 @@ CFLAGS+= -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK -DOPIE \ CFLAGS+= -DINET6 .endif +WARNS?= 2 + LIBTELNET= ${.OBJDIR}/../../lib/libtelnet/libtelnet.a DPADD= ${LIBTERMCAP} ${LIBTELNET} diff --git a/usr.bin/time/Makefile b/usr.bin/time/Makefile index 5a580d2c4ead..e462af660325 100644 --- a/usr.bin/time/Makefile +++ b/usr.bin/time/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= time -WARNS?=6 .include diff --git a/usr.bin/top/Makefile b/usr.bin/top/Makefile index 182714aa7021..864473f5c614 100644 --- a/usr.bin/top/Makefile +++ b/usr.bin/top/Makefile @@ -10,6 +10,8 @@ SRCS+= sigdesc.h top.local.h CFLAGS+= -DHAVE_GETOPT -DHAVE_STRERROR -DORDER CFLAGS+= -I${.CURDIR} -I${TOPDIR} -I. +WARNS?= 0 + # # The table size should be a prime number approximately twice as # large as the number of lines in /etc/passwd. The default number diff --git a/usr.bin/tr/Makefile b/usr.bin/tr/Makefile index 00bdd8d5bb7a..c5c5297ef64b 100644 --- a/usr.bin/tr/Makefile +++ b/usr.bin/tr/Makefile @@ -4,4 +4,6 @@ PROG= tr SRCS= cmap.c cset.c str.c tr.c +WARNS?= 1 + .include diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index 104cd968776a..d907ad59c8e3 100644 --- a/usr.bin/truss/Makefile +++ b/usr.bin/truss/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ -WARNS?= 6 NO_WERROR= PROG= truss SRCS= main.c setup.c syscalls.c syscalls.h ioctl.c ${MACHINE_ARCH}-fbsd.c diff --git a/usr.bin/unifdef/Makefile b/usr.bin/unifdef/Makefile index b31709aa6e62..dcd358f23192 100644 --- a/usr.bin/unifdef/Makefile +++ b/usr.bin/unifdef/Makefile @@ -4,6 +4,5 @@ PROG= unifdef SCRIPTS=unifdefall.sh MLINKS= unifdef.1 unifdefall.1 -WARNS?= 5 .include diff --git a/usr.bin/unzip/Makefile b/usr.bin/unzip/Makefile index cc31dea8f835..5f235bba5762 100644 --- a/usr.bin/unzip/Makefile +++ b/usr.bin/unzip/Makefile @@ -1,7 +1,6 @@ # $FreeBSD$ PROG = unzip -WARNS ?= 6 CSTD = c99 DPADD = ${LIBARCHIVE} LDADD = -larchive diff --git a/usr.bin/users/Makefile b/usr.bin/users/Makefile index d9ea431c4482..53274b9dbdea 100644 --- a/usr.bin/users/Makefile +++ b/usr.bin/users/Makefile @@ -3,8 +3,6 @@ PROG= users -WARNS?= 6 - DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.bin/uudecode/Makefile b/usr.bin/uudecode/Makefile index 37005f3ded52..909ce3d746f2 100644 --- a/usr.bin/uudecode/Makefile +++ b/usr.bin/uudecode/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= uudecode -WARNS?= 4 LINKS= ${BINDIR}/uudecode ${BINDIR}/b64decode NO_MAN= diff --git a/usr.bin/uuencode/Makefile b/usr.bin/uuencode/Makefile index c795753a10bc..9a8b9918dffe 100644 --- a/usr.bin/uuencode/Makefile +++ b/usr.bin/uuencode/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= uuencode -WARNS?= 4 MAN= uuencode.1 uuencode.format.5 LINKS= ${BINDIR}/uuencode ${BINDIR}/b64encode MLINKS= uuencode.1 uudecode.1 \ diff --git a/usr.bin/vacation/Makefile b/usr.bin/vacation/Makefile index 63ba3abec817..056f5764fa01 100644 --- a/usr.bin/vacation/Makefile +++ b/usr.bin/vacation/Makefile @@ -9,6 +9,8 @@ CFLAGS+=-I${SENDMAIL_DIR}/src -I${SENDMAIL_DIR}/include -I. CFLAGS+=-DNEWDB -DNOT_SENDMAIL CFLAGS+=-D_FFR_LISTDB -D_FFR_DEBUG +WARNS?= 2 + LIBSMDIR= ${.OBJDIR}/../../lib/libsm LIBSM= ${LIBSMDIR}/libsm.a diff --git a/usr.bin/vgrind/Makefile b/usr.bin/vgrind/Makefile index 1a64c1c9f01f..612e504ecb2b 100644 --- a/usr.bin/vgrind/Makefile +++ b/usr.bin/vgrind/Makefile @@ -11,6 +11,8 @@ FILESDIR= ${SHAREDIR}/misc FILESDIR_tmac.vgrind= ${SHAREDIR}/tmac MAN= vgrind.1 vgrindefs.5 +WARNS?= 2 + BINDIR= /usr/libexec SCRIPTSDIR=/usr/bin diff --git a/usr.bin/vi/Makefile b/usr.bin/vi/Makefile index 7276b7b35bb8..048c35b6f017 100644 --- a/usr.bin/vi/Makefile +++ b/usr.bin/vi/Makefile @@ -9,6 +9,8 @@ CFLAGS+= -DGTAGS #if using ncurses: CFLAGS+= -DSYSV_CURSES +WARNS?= 0 + VI= nvi EX= nex VIEW= nview diff --git a/usr.bin/vmstat/Makefile b/usr.bin/vmstat/Makefile index 6e87a6a6f8e5..d413d25ab61a 100644 --- a/usr.bin/vmstat/Makefile +++ b/usr.bin/vmstat/Makefile @@ -6,4 +6,6 @@ MAN= vmstat.8 DPADD= ${LIBDEVSTAT} ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL} LDADD= -ldevstat -lkvm -lmemstat -lutil +WARNS?= 1 + .include diff --git a/usr.bin/w/Makefile b/usr.bin/w/Makefile index f53d8c7d5d91..5111cb81d656 100644 --- a/usr.bin/w/Makefile +++ b/usr.bin/w/Makefile @@ -10,6 +10,8 @@ LDADD= -lkvm -lulog -lutil #BINMODE=2555 LINKS= ${BINDIR}/w ${BINDIR}/uptime +WARNS?= 1 + .PATH: ${.CURDIR}/../../bin/ps .include diff --git a/usr.bin/wall/Makefile b/usr.bin/wall/Makefile index 5e75d9b96f45..5f0230f8f15d 100644 --- a/usr.bin/wall/Makefile +++ b/usr.bin/wall/Makefile @@ -6,8 +6,6 @@ SRCS= ttymsg.c wall.c BINGRP= tty BINMODE=2555 -WARNS?= 6 - DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.bin/wc/Makefile b/usr.bin/wc/Makefile index edce9c1412c8..4fa9f30f7912 100644 --- a/usr.bin/wc/Makefile +++ b/usr.bin/wc/Makefile @@ -2,5 +2,4 @@ # $FreeBSD$ PROG= wc -WARNS?= 6 .include diff --git a/usr.bin/whereis/Makefile b/usr.bin/whereis/Makefile index d48b30d11782..47e2c3dcf494 100644 --- a/usr.bin/whereis/Makefile +++ b/usr.bin/whereis/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= whereis -WARNS?= 5 .include diff --git a/usr.bin/who/Makefile b/usr.bin/who/Makefile index c401e229b8df..bec6fcac1f25 100644 --- a/usr.bin/who/Makefile +++ b/usr.bin/who/Makefile @@ -3,8 +3,6 @@ PROG= who -WARNS= 6 - DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.bin/write/Makefile b/usr.bin/write/Makefile index e34a61d8be6e..31f102ad2342 100644 --- a/usr.bin/write/Makefile +++ b/usr.bin/write/Makefile @@ -5,8 +5,6 @@ PROG= write BINMODE=2555 BINGRP= tty -WARNS?= 6 - DPADD= ${LIBULOG} LDADD= -lulog diff --git a/usr.bin/xargs/Makefile b/usr.bin/xargs/Makefile index 16162a1641e9..642e9532e421 100644 --- a/usr.bin/xargs/Makefile +++ b/usr.bin/xargs/Makefile @@ -3,6 +3,5 @@ PROG= xargs SRCS= xargs.c strnsubst.c -WARNS?= 6 .include diff --git a/usr.bin/xinstall/Makefile b/usr.bin/xinstall/Makefile index 594f1dcfbf79..e6ff88e90a5b 100644 --- a/usr.bin/xinstall/Makefile +++ b/usr.bin/xinstall/Makefile @@ -4,6 +4,5 @@ PROG= xinstall PROGNAME= install MAN= install.1 -WARNS?= 6 .include diff --git a/usr.bin/xlint/xlint/Makefile b/usr.bin/xlint/xlint/Makefile index 5dfdfb314a71..6cd715f81e28 100644 --- a/usr.bin/xlint/xlint/Makefile +++ b/usr.bin/xlint/xlint/Makefile @@ -11,5 +11,7 @@ MAN= lint.1 CFLAGS+=-I${.CURDIR}/../lint1 CFLAGS+= -DPREFIX=\"${TOOLS_PREFIX}\" +WARNS?= 2 + .include "${.CURDIR}/../../Makefile.inc" .include diff --git a/usr.bin/yacc/Makefile b/usr.bin/yacc/Makefile index e8b1024e82bb..c2f31a78fe19 100644 --- a/usr.bin/yacc/Makefile +++ b/usr.bin/yacc/Makefile @@ -9,4 +9,6 @@ MAN= yacc.1 yyfix.1 LINKS= ${BINDIR}/yacc ${BINDIR}/byacc MLINKS= yacc.1 byacc.1 +WARNS?= 2 + .include diff --git a/usr.bin/ypcat/Makefile b/usr.bin/ypcat/Makefile index 58ee6907f07f..782fdcc1a8d6 100644 --- a/usr.bin/ypcat/Makefile +++ b/usr.bin/ypcat/Makefile @@ -3,4 +3,6 @@ PROG= ypcat +WARNS?= 3 + .include diff --git a/usr.bin/ypmatch/Makefile b/usr.bin/ypmatch/Makefile index 22e62996937e..d4a5b955e5c7 100644 --- a/usr.bin/ypmatch/Makefile +++ b/usr.bin/ypmatch/Makefile @@ -3,4 +3,6 @@ PROG= ypmatch +WARNS?= 3 + .include diff --git a/usr.bin/ypwhich/Makefile b/usr.bin/ypwhich/Makefile index f28f864ab097..3f6928fb7e8b 100644 --- a/usr.bin/ypwhich/Makefile +++ b/usr.bin/ypwhich/Makefile @@ -3,4 +3,6 @@ PROG= ypwhich +WARNS?= 2 + .include