diff options
author | ed <ed@FreeBSD.org> | 2010-01-02 10:27:05 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-01-02 10:27:05 +0000 |
commit | 9b380e30d4e06cf0243e311871dc27cfa4a6354a (patch) | |
tree | 756926e3b5383e94680dcfd7df8fd002f56e1dd7 /usr.bin | |
parent | 14b790b0cfcd233769de066dd78e637bf80713dc (diff) | |
download | FreeBSD-src-9b380e30d4e06cf0243e311871dc27cfa4a6354a.zip FreeBSD-src-9b380e30d4e06cf0243e311871dc27cfa4a6354a.tar.gz |
Build usr.bin/ with WARNS=6 by default.
Also add some missing $FreeBSD$ to keep svn happy.
Diffstat (limited to 'usr.bin')
133 files changed, 138 insertions, 79 deletions
diff --git a/usr.bin/Makefile.inc b/usr.bin/Makefile.inc index 2ee98c3..534349f 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 0355588..ca0f10a 100644 --- a/usr.bin/apply/Makefile +++ b/usr.bin/apply/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= apply -WARNS?= 4 .include <bsd.prog.mk> diff --git a/usr.bin/ar/Makefile b/usr.bin/ar/Makefile index 533f931..1f00aca 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 47d2574..75546fc 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 16703bb..36d3dcf 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 7ec2e57..2812615 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 fe2c479..833d107 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 198d906..265f86d 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 0460fff..c2490a2 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 481713a..27df8b6 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 d80a5fd..ab4c014 100644 --- a/usr.bin/catman/Makefile +++ b/usr.bin/catman/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= catman -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/chkey/Makefile b/usr.bin/chkey/Makefile index 2813ca1..847e5c9 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 <bsd.prog.mk> diff --git a/usr.bin/chpass/Makefile b/usr.bin/chpass/Makefile index e958956..7f7ac51 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 6cb213f..5f62bc5 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 <bsd.prog.mk> diff --git a/usr.bin/compile_et/Makefile b/usr.bin/compile_et/Makefile index 3d4ab15..262e696 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 <bsd.prog.mk> diff --git a/usr.bin/compress/Makefile b/usr.bin/compress/Makefile index 45c0814..a586b97f 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 c64ab6c..d609780 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 7da5a60..ace9516 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 85a5148..660a096 100644 --- a/usr.bin/cpuset/Makefile +++ b/usr.bin/cpuset/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= cpuset -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/ctags/Makefile b/usr.bin/ctags/Makefile index dc639af..be2e93e 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 <bsd.prog.mk> diff --git a/usr.bin/dig/Makefile b/usr.bin/dig/Makefile index 585e379..ec11dc4 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 12e80b9..f614866 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 4ba44e7..2959539 100644 --- a/usr.bin/elf2aout/Makefile +++ b/usr.bin/elf2aout/Makefile @@ -3,6 +3,5 @@ PROG= elf2aout NO_WERROR= -WARNS?= 5 .include <bsd.prog.mk> diff --git a/usr.bin/elfdump/Makefile b/usr.bin/elfdump/Makefile index 95ce514..22e1ca9 100644 --- a/usr.bin/elfdump/Makefile +++ b/usr.bin/elfdump/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= elfdump -WARNS?= 5 .include <bsd.prog.mk> diff --git a/usr.bin/env/Makefile b/usr.bin/env/Makefile index bc1eea4..89ab594 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 <bsd.prog.mk> diff --git a/usr.bin/fetch/Makefile b/usr.bin/fetch/Makefile index c422af8..5686fc6 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 c3c6ddc..82b7e97 100644 --- a/usr.bin/file2c/Makefile +++ b/usr.bin/file2c/Makefile @@ -1,5 +1,4 @@ # $FreeBSD$ PROG= file2c -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/find/Makefile b/usr.bin/find/Makefile index b20dc03..1208260 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 8c5780c..a7db063 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 d55fce4..23e907b 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 42aa6dd..c9bc524 100644 --- a/usr.bin/fsync/Makefile +++ b/usr.bin/fsync/Makefile @@ -2,5 +2,4 @@ PROG= fsync -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/ftp/Makefile b/usr.bin/ftp/Makefile index c2fe59c..6f42e69 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 199d195..358c747 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 <bsd.prog.mk> diff --git a/usr.bin/gencat/Makefile b/usr.bin/gencat/Makefile index a6c9991..2cf86df 100644 --- a/usr.bin/gencat/Makefile +++ b/usr.bin/gencat/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= gencat -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/getent/Makefile b/usr.bin/getent/Makefile index 6cc3d56..85bc1b1 100644 --- a/usr.bin/getent/Makefile +++ b/usr.bin/getent/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= getent -WARNS?= 3 .include <bsd.prog.mk> diff --git a/usr.bin/gprof/Makefile b/usr.bin/gprof/Makefile index a24d9cd..5062325 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 <bsd.prog.mk> diff --git a/usr.bin/gzip/Makefile b/usr.bin/gzip/Makefile index dae5f84..0480337 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 002b3f3..60b0a2f 100644 --- a/usr.bin/head/Makefile +++ b/usr.bin/head/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= head -WARNS= 6 .include <bsd.prog.mk> diff --git a/usr.bin/hexdump/Makefile b/usr.bin/hexdump/Makefile index 3252fc9..4cd3cc5 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 <bsd.prog.mk> diff --git a/usr.bin/host/Makefile b/usr.bin/host/Makefile index 9861914..e2909e1 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 96c162f..7d78b50 100644 --- a/usr.bin/id/Makefile +++ b/usr.bin/id/Makefile @@ -4,7 +4,6 @@ .include <bsd.own.mk> 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 47e4ccc..f55311c 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 <bsd.prog.mk> diff --git a/usr.bin/ipcs/Makefile b/usr.bin/ipcs/Makefile index 8ee1d43..0d422e1 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 <bsd.prog.mk> diff --git a/usr.bin/kdump/Makefile b/usr.bin/kdump/Makefile index 2ca8561..832b2dc 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 bf279eb..4c03051 100644 --- a/usr.bin/keylogin/Makefile +++ b/usr.bin/keylogin/Makefile @@ -5,4 +5,6 @@ PROG= keylogin DPADD= ${LIBRPCSVC} LDADD= -lrpcsvc +WARNS?= 0 + .include <bsd.prog.mk> diff --git a/usr.bin/ktrace/Makefile b/usr.bin/ktrace/Makefile index c00bb75..2679923 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 <bsd.prog.mk> diff --git a/usr.bin/ktrdump/Makefile b/usr.bin/ktrdump/Makefile index 6b5ff12..c30dc3d 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 <bsd.prog.mk> diff --git a/usr.bin/last/Makefile b/usr.bin/last/Makefile index f7e8811..0bd2f05 100644 --- a/usr.bin/last/Makefile +++ b/usr.bin/last/Makefile @@ -3,4 +3,6 @@ PROG= last +WARNS?= 1 + .include <bsd.prog.mk> diff --git a/usr.bin/lastcomm/Makefile b/usr.bin/lastcomm/Makefile index c79cd74..84708d9 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 <bsd.prog.mk> diff --git a/usr.bin/ldd/Makefile b/usr.bin/ldd/Makefile index 357f9f3..cd17228 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 <bsd.prog.mk> diff --git a/usr.bin/leave/Makefile b/usr.bin/leave/Makefile index 859c11c..5484797 100644 --- a/usr.bin/leave/Makefile +++ b/usr.bin/leave/Makefile @@ -3,4 +3,6 @@ PROG= leave +WARNS?= 1 + .include <bsd.prog.mk> diff --git a/usr.bin/less/Makefile.common b/usr.bin/less/Makefile.common index fcc6ccf..cffb85a 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 6d0ea5b..e16568f 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 dcc7518..b43d803 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 5999cdb..0133178 100644 --- a/usr.bin/limits/Makefile +++ b/usr.bin/limits/Makefile @@ -3,6 +3,5 @@ PROG= limits DPADD= ${LIBUTIL} LDADD= -lutil -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/locate/Makefile.inc b/usr.bin/locate/Makefile.inc index 4817408..5ce397d 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 9a618da..a139ff2 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 dc09a87..8093ca5 100644 --- a/usr.bin/lock/Makefile +++ b/usr.bin/lock/Makefile @@ -7,4 +7,6 @@ BINMODE=4555 DPADD= ${LIBCRYPT} LDADD= -lcrypt +WARNS?= 1 + .include <bsd.prog.mk> diff --git a/usr.bin/logger/Makefile b/usr.bin/logger/Makefile index 6ff7224..922192c 100644 --- a/usr.bin/logger/Makefile +++ b/usr.bin/logger/Makefile @@ -4,7 +4,6 @@ .include <bsd.own.mk> PROG= logger -WARNS?= 6 .if ${MK_INET6_SUPPORT} != "no" CFLAGS+= -DINET6 diff --git a/usr.bin/login/Makefile b/usr.bin/login/Makefile index 22c73b9..bd34ed9 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 42840fb..ad88cd9 100644 --- a/usr.bin/logins/Makefile +++ b/usr.bin/logins/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= logins -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/logname/Makefile b/usr.bin/logname/Makefile index 4e910ce..875df2c 100644 --- a/usr.bin/logname/Makefile +++ b/usr.bin/logname/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= logname -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/look/Makefile b/usr.bin/look/Makefile index 64d7788..a620039 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 <bsd.prog.mk> diff --git a/usr.bin/lsvfs/Makefile b/usr.bin/lsvfs/Makefile index 0c33583..324b6fd 100644 --- a/usr.bin/lsvfs/Makefile +++ b/usr.bin/lsvfs/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= lsvfs -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/m4/Makefile b/usr.bin/m4/Makefile index 702b3f3..feceb0c 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 <bsd.prog.mk> diff --git a/usr.bin/mail/Makefile b/usr.bin/mail/Makefile index 5fa455b..da3e433 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 deb076f..c581385 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 226ba76..9a0ab95 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 <bsd.prog.mk> diff --git a/usr.bin/mkfifo/Makefile b/usr.bin/mkfifo/Makefile index bab308b..30f013e 100644 --- a/usr.bin/mkfifo/Makefile +++ b/usr.bin/mkfifo/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= mkfifo -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/mklocale/Makefile b/usr.bin/mklocale/Makefile index 9873d4e..e75fe99 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 805c013..b4e3620 100644 --- a/usr.bin/mkstr/Makefile +++ b/usr.bin/mkstr/Makefile @@ -3,4 +3,6 @@ PROG= mkstr +WARNS?= 2 + .include <bsd.prog.mk> diff --git a/usr.bin/mkuzip/Makefile b/usr.bin/mkuzip/Makefile index 11ed083..c5eac20 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 <bsd.prog.mk> diff --git a/usr.bin/msgs/Makefile b/usr.bin/msgs/Makefile index 9f59c6a..21cb151 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 a4400bc..84d20d3 100644 --- a/usr.bin/nc/Makefile +++ b/usr.bin/nc/Makefile @@ -9,4 +9,6 @@ CFLAGS+=-DIPSEC LDADD= -lipsec DPADD= ${LIBIPSEC} +WARNS?= 1 + .include <bsd.prog.mk> diff --git a/usr.bin/ncplist/Makefile b/usr.bin/ncplist/Makefile index 8e6d189..b5baed4 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 1460f87..b3b5b51 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 <bsd.prog.mk> diff --git a/usr.bin/nfsstat/Makefile b/usr.bin/nfsstat/Makefile index ce4c7c6..d31db0a 100644 --- a/usr.bin/nfsstat/Makefile +++ b/usr.bin/nfsstat/Makefile @@ -6,4 +6,6 @@ CFLAGS+=-DNFS DPADD= ${LIBKVM} LDADD= -lkvm +WARNS?= 3 + .include <bsd.prog.mk> diff --git a/usr.bin/nl/Makefile b/usr.bin/nl/Makefile index 9b1f292..07bef878 100644 --- a/usr.bin/nl/Makefile +++ b/usr.bin/nl/Makefile @@ -2,4 +2,6 @@ PROG= nl +WARNS?= 2 + .include <bsd.prog.mk> diff --git a/usr.bin/nohup/Makefile b/usr.bin/nohup/Makefile index cd635ce..5ec4057 100644 --- a/usr.bin/nohup/Makefile +++ b/usr.bin/nohup/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= nohup -WARNS?= 4 .include <bsd.prog.mk> diff --git a/usr.bin/nslookup/Makefile b/usr.bin/nslookup/Makefile index 004efa2..b3ba117 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 <bsd.prog.mk> diff --git a/usr.bin/nsupdate/Makefile b/usr.bin/nsupdate/Makefile index 0b81c5e..941c7f3 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 0375111..b3ba166 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 215c86b..e017f4d 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 0d75a21..b05e3b2 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 a1ce76b..7aeee56 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 70a921d..88ec7b4 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 <bsd.prog.mk> diff --git a/usr.bin/printf/Makefile b/usr.bin/printf/Makefile index 78cdd0d..c91c4e3 100644 --- a/usr.bin/printf/Makefile +++ b/usr.bin/printf/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= printf -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/procstat/Makefile b/usr.bin/procstat/Makefile index 6cb5895..1c187b0 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 <bsd.prog.mk> diff --git a/usr.bin/revoke/Makefile b/usr.bin/revoke/Makefile index b3c4ee6..92fe221 100644 --- a/usr.bin/revoke/Makefile +++ b/usr.bin/revoke/Makefile @@ -2,6 +2,4 @@ PROG= revoke -WARNS?= 6 - .include <bsd.prog.mk> diff --git a/usr.bin/rlogin/Makefile b/usr.bin/rlogin/Makefile index 195bffb..abf4a82 100644 --- a/usr.bin/rlogin/Makefile +++ b/usr.bin/rlogin/Makefile @@ -7,4 +7,6 @@ BINOWN= root BINMODE=4555 PRECIOUSPROG= +WARNS?= 3 + .include <bsd.prog.mk> diff --git a/usr.bin/rpcgen/Makefile b/usr.bin/rpcgen/Makefile index c298820..f78fa64 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 <bsd.prog.mk> diff --git a/usr.bin/rpcinfo/Makefile b/usr.bin/rpcinfo/Makefile index c89b5b3..3c8e51c 100644 --- a/usr.bin/rpcinfo/Makefile +++ b/usr.bin/rpcinfo/Makefile @@ -7,4 +7,6 @@ MAN= rpcinfo.8 CFLAGS+= -DPORTMAP +WARNS?= 2 + .include <bsd.prog.mk> diff --git a/usr.bin/rsh/Makefile b/usr.bin/rsh/Makefile index cf052f7..5c6951c 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 6d32977..e872201 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 57f1e15..351d0d8 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 <bsd.prog.mk> diff --git a/usr.bin/rusers/Makefile b/usr.bin/rusers/Makefile index 21d0ce2..6cb39ac 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 328aa38..aee9ff7 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 <bsd.prog.mk> diff --git a/usr.bin/sed/Makefile b/usr.bin/sed/Makefile index 9d9886f..1fbce17 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 <bsd.prog.mk> diff --git a/usr.bin/smbutil/Makefile b/usr.bin/smbutil/Makefile index 13b5078..19ac5fd 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 <bsd.prog.mk> diff --git a/usr.bin/sockstat/Makefile b/usr.bin/sockstat/Makefile index 55e7025..8093367 100644 --- a/usr.bin/sockstat/Makefile +++ b/usr.bin/sockstat/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= sockstat -WARNS?= 4 .include <bsd.prog.mk> diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile index 25216cf..0002e86 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 d89399c..5ecac6e 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 c816693..672cbed 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 <bsd.prog.mk> diff --git a/usr.bin/tar/Makefile b/usr.bin/tar/Makefile index 22f8ff7..7234845 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 2f6f056..3880be0 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 1bae0b2..feb5769 100644 --- a/usr.bin/tcopy/Makefile +++ b/usr.bin/tcopy/Makefile @@ -3,4 +3,6 @@ PROG= tcopy +WARNS?= 1 + .include <bsd.prog.mk> diff --git a/usr.bin/telnet/Makefile b/usr.bin/telnet/Makefile index ee112ff..0ef55c5 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 5a580d2..e462af66 100644 --- a/usr.bin/time/Makefile +++ b/usr.bin/time/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= time -WARNS?=6 .include <bsd.prog.mk> diff --git a/usr.bin/top/Makefile b/usr.bin/top/Makefile index 182714a..864473f 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 00bdd8d..c5c5297 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 <bsd.prog.mk> diff --git a/usr.bin/truss/Makefile b/usr.bin/truss/Makefile index 104cd96..d907ad5 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 b31709a..dcd358f 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 <bsd.prog.mk> diff --git a/usr.bin/unzip/Makefile b/usr.bin/unzip/Makefile index cc31dea..5f235bb 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 d9ea431..53274b9 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 37005f3..909ce3d 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 c795753..9a8b991 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 63ba3ab..056f576 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 1a64c1c..612e504 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 7276b7b..048c35b 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 6e87a6a..d413d25 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 <bsd.prog.mk> diff --git a/usr.bin/w/Makefile b/usr.bin/w/Makefile index f53d8c7..5111cb8 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 <bsd.prog.mk> diff --git a/usr.bin/wall/Makefile b/usr.bin/wall/Makefile index 5e75d9b..5f0230f 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 edce9c1..4fa9f30 100644 --- a/usr.bin/wc/Makefile +++ b/usr.bin/wc/Makefile @@ -2,5 +2,4 @@ # $FreeBSD$ PROG= wc -WARNS?= 6 .include <bsd.prog.mk> diff --git a/usr.bin/whereis/Makefile b/usr.bin/whereis/Makefile index d48b30d..47e2c3d 100644 --- a/usr.bin/whereis/Makefile +++ b/usr.bin/whereis/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= whereis -WARNS?= 5 .include <bsd.prog.mk> diff --git a/usr.bin/who/Makefile b/usr.bin/who/Makefile index c401e22..bec6fca 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 e34a61d..31f102a 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 16162a1..642e953 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 <bsd.prog.mk> diff --git a/usr.bin/xinstall/Makefile b/usr.bin/xinstall/Makefile index 594f1dc..e6ff88e 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 <bsd.prog.mk> diff --git a/usr.bin/xlint/xlint/Makefile b/usr.bin/xlint/xlint/Makefile index 5dfdfb3..6cd715f 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 <bsd.prog.mk> diff --git a/usr.bin/yacc/Makefile b/usr.bin/yacc/Makefile index e8b1024..c2f31a7 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 <bsd.prog.mk> diff --git a/usr.bin/ypcat/Makefile b/usr.bin/ypcat/Makefile index 58ee690..782fdcc 100644 --- a/usr.bin/ypcat/Makefile +++ b/usr.bin/ypcat/Makefile @@ -3,4 +3,6 @@ PROG= ypcat +WARNS?= 3 + .include <bsd.prog.mk> diff --git a/usr.bin/ypmatch/Makefile b/usr.bin/ypmatch/Makefile index 22e6299..d4a5b95 100644 --- a/usr.bin/ypmatch/Makefile +++ b/usr.bin/ypmatch/Makefile @@ -3,4 +3,6 @@ PROG= ypmatch +WARNS?= 3 + .include <bsd.prog.mk> diff --git a/usr.bin/ypwhich/Makefile b/usr.bin/ypwhich/Makefile index f28f864..3f6928f 100644 --- a/usr.bin/ypwhich/Makefile +++ b/usr.bin/ypwhich/Makefile @@ -3,4 +3,6 @@ PROG= ypwhich +WARNS?= 2 + .include <bsd.prog.mk> |