Default to WARNS=2. Binary builds that cannot handle this must explicitly

set WARNS=0.

Reviewed by:	mike
This commit is contained in:
obrien 2001-12-04 01:57:47 +00:00
parent de55179b29
commit 099f8ecbe9
33 changed files with 12 additions and 37 deletions

View File

@ -4,6 +4,7 @@
BINDIR?= /bin
CFLAGS+= -Wall -Wformat
NOSHARED?= YES
WARNS?= 2
.if exists (${.CURDIR}/../../secure)

View File

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

View File

@ -2,7 +2,6 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
PROG= chio
WARNS?= 2
SRCS= chio.c
.include <bsd.prog.mk>

View File

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

View File

@ -3,6 +3,7 @@
PROG= cp
SRCS= cp.c utils.c
CFLAGS+= -W -DVM_AND_BUFFER_CACHE_SYNCHRONIZED
CFLAGS+= -DVM_AND_BUFFER_CACHE_SYNCHRONIZED
WARNS= 0
.include <bsd.prog.mk>

View File

@ -13,6 +13,7 @@ PROG= csh
SUBDIR= nls
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
WARNS= 0
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \

View File

@ -3,6 +3,7 @@
PROG= date
SRCS= date.c netdate.c vary.c
WARNS= 0
DPADD= ${LIBUTIL}
LDADD= -lutil

View File

@ -3,6 +3,7 @@
PROG= dd
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
WARNS= 0
MAINTAINER= green@FreeBSD.org

View File

@ -11,6 +11,4 @@ CFLAGS+= -I${MOUNT}
DPADD= ${LIBM}
LDADD= -lm
WARNS?= 2
.include <bsd.prog.mk>

View File

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

View File

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

View File

@ -2,7 +2,6 @@
PROG= ed
SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
WARNS?= 2
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1

View File

@ -3,6 +3,5 @@
PROG= expr
SRCS= expr.y
YFLAGS=
WARNS?= 2
.include <bsd.prog.mk>

View File

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

View File

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

View File

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

View File

@ -7,6 +7,4 @@ MAN= ln.1 symlink.7
LINKS= ${BINDIR}/ln ${BINDIR}/link
MLINKS= ln.1 link.1
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,6 +4,7 @@
PROG= ls
SRCS= cmp.c ls.c print.c util.c lomac.c
WARNS= 0
.if !defined(RELEASE_CRUNCH)
CFLAGS+= -DCOLORLS

View File

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

View File

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

View File

@ -29,6 +29,7 @@ PROG= pax
SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \
gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
tables.c tar.c tty_subs.c
WARNS= 0
#XXX NOTYET
#MAN= pax.1 tar.1 cpio.1
#LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio

View File

@ -10,6 +10,7 @@ SRCS= fmt.c keyword.c nlist.c print.c ps.c lomac.c
# on large systems.
#
CFLAGS+=-DLAZY_PS
WARNS= 0
DPADD= ${LIBM} ${LIBKVM}
LDADD= -lm -lkvm
#BINGRP= kmem

View File

@ -5,6 +5,4 @@ PROG= pwd
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
MAN= pwd.1 realpath.1
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -4,6 +4,7 @@
PROG= rcp
SRCS= rcp.c util.c
CFLAGS+=-DBINDIR=${BINDIR}
WARNS= 0
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4)
SRCS+= krcmd.c kcmd.c rcmd_util.c

View File

@ -2,7 +2,6 @@
# $FreeBSD$
PROG= rm
WARNS?= 2
SRCS= rm.c
LINKS= ${BINDIR}/rm ${BINDIR}/unlink

View File

@ -10,6 +10,7 @@ PROG= rmail
SRCS= rmail.c
MAN= rmail.8
CFLAGS+=-I${SENDMAIL_DIR}/include
WARNS= 0
.if exists(${.OBJDIR}/../../lib/libsmutil)
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil

View File

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

View File

@ -3,6 +3,4 @@
PROG= setfacl
SRCS= file.c mask.c merge.c remove.c setfacl.c util.c
WARNS?= 2
.include <bsd.prog.mk>

View File

@ -21,6 +21,7 @@ LFLAGS= -8 # 8-bit lex scanner for arithmetic
CFLAGS+=-DSHELL -I. -I${.CURDIR}
# for debug:
# CFLAGS+= -g -DDEBUG=2
WARNS= 0
.PATH: ${.CURDIR}/bltin \
${.CURDIR}/../../bin/test

View File

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

View File

@ -4,6 +4,4 @@
PROG= stty
SRCS= cchar.c gfmt.c key.c modes.c print.c stty.c util.c
WARNS?= 2
.include <bsd.prog.mk>

View File

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

View File

@ -5,6 +5,4 @@ PROG= test
LINKS= ${BINDIR}/test ${BINDIR}/[
MLINKS= test.1 '[.1'
WARNS?= 2
.include <bsd.prog.mk>