From 099f8ecbe9e998c7d18349a9429e95b060ef3082 Mon Sep 17 00:00:00 2001 From: obrien Date: Tue, 4 Dec 2001 01:57:47 +0000 Subject: Default to WARNS=2. Binary builds that cannot handle this must explicitly set WARNS=0. Reviewed by: mike --- bin/Makefile.inc | 1 + bin/cat/Makefile | 1 - bin/chio/Makefile | 1 - bin/chmod/Makefile | 2 -- bin/cp/Makefile | 3 ++- bin/csh/Makefile | 1 + bin/date/Makefile | 1 + bin/dd/Makefile | 1 + bin/df/Makefile | 2 -- bin/domainname/Makefile | 2 -- bin/echo/Makefile | 2 -- bin/ed/Makefile | 1 - bin/expr/Makefile | 1 - bin/getfacl/Makefile | 1 - bin/hostname/Makefile | 2 -- bin/kill/Makefile | 2 -- bin/ln/Makefile | 2 -- bin/ls/Makefile | 1 + bin/mkdir/Makefile | 1 - bin/mv/Makefile | 1 - bin/pax/Makefile | 1 + bin/ps/Makefile | 1 + bin/pwd/Makefile | 2 -- bin/rcp/Makefile | 1 + bin/rm/Makefile | 1 - bin/rmail/Makefile | 1 + bin/rmdir/Makefile | 2 -- bin/setfacl/Makefile | 2 -- bin/sh/Makefile | 1 + bin/sleep/Makefile | 2 -- bin/stty/Makefile | 2 -- bin/sync/Makefile | 2 -- bin/test/Makefile | 2 -- 33 files changed, 12 insertions(+), 37 deletions(-) diff --git a/bin/Makefile.inc b/bin/Makefile.inc index d29f43a..29cd22b 100644 --- a/bin/Makefile.inc +++ b/bin/Makefile.inc @@ -4,6 +4,7 @@ BINDIR?= /bin CFLAGS+= -Wall -Wformat NOSHARED?= YES +WARNS?= 2 .if exists (${.CURDIR}/../../secure) diff --git a/bin/cat/Makefile b/bin/cat/Makefile index 5e2c746..672a4ee 100644 --- a/bin/cat/Makefile +++ b/bin/cat/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= cat -WARNS?= 2 .include diff --git a/bin/chio/Makefile b/bin/chio/Makefile index 33bde4b..1720328 100644 --- a/bin/chio/Makefile +++ b/bin/chio/Makefile @@ -2,7 +2,6 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 PROG= chio -WARNS?= 2 SRCS= chio.c .include diff --git a/bin/chmod/Makefile b/bin/chmod/Makefile index 9661513..71006d0 100644 --- a/bin/chmod/Makefile +++ b/bin/chmod/Makefile @@ -3,6 +3,4 @@ PROG= chmod -WARNS?= 2 - .include diff --git a/bin/cp/Makefile b/bin/cp/Makefile index 1b0037f..7108f71 100644 --- a/bin/cp/Makefile +++ b/bin/cp/Makefile @@ -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 diff --git a/bin/csh/Makefile b/bin/csh/Makefile index bb6c56b..555cf58 100644 --- a/bin/csh/Makefile +++ b/bin/csh/Makefile @@ -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 \ diff --git a/bin/date/Makefile b/bin/date/Makefile index 8a1dc85..0a57e97 100644 --- a/bin/date/Makefile +++ b/bin/date/Makefile @@ -3,6 +3,7 @@ PROG= date SRCS= date.c netdate.c vary.c +WARNS= 0 DPADD= ${LIBUTIL} LDADD= -lutil diff --git a/bin/dd/Makefile b/bin/dd/Makefile index 0cbd238..165362a 100644 --- a/bin/dd/Makefile +++ b/bin/dd/Makefile @@ -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 diff --git a/bin/df/Makefile b/bin/df/Makefile index 264d99f..77a05e84 100644 --- a/bin/df/Makefile +++ b/bin/df/Makefile @@ -11,6 +11,4 @@ CFLAGS+= -I${MOUNT} DPADD= ${LIBM} LDADD= -lm -WARNS?= 2 - .include diff --git a/bin/domainname/Makefile b/bin/domainname/Makefile index 958c490..724bd06 100644 --- a/bin/domainname/Makefile +++ b/bin/domainname/Makefile @@ -2,6 +2,4 @@ PROG= domainname -WARNS?= 2 - .include diff --git a/bin/echo/Makefile b/bin/echo/Makefile index 236a937..d00d467 100644 --- a/bin/echo/Makefile +++ b/bin/echo/Makefile @@ -3,6 +3,4 @@ PROG= echo -WARNS?= 2 - .include diff --git a/bin/ed/Makefile b/bin/ed/Makefile index 93d5ee0..95901a6 100644 --- a/bin/ed/Makefile +++ b/bin/ed/Makefile @@ -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 diff --git a/bin/expr/Makefile b/bin/expr/Makefile index 4857ca6..544853e 100644 --- a/bin/expr/Makefile +++ b/bin/expr/Makefile @@ -3,6 +3,5 @@ PROG= expr SRCS= expr.y YFLAGS= -WARNS?= 2 .include diff --git a/bin/getfacl/Makefile b/bin/getfacl/Makefile index f47f658..b7b5e983 100644 --- a/bin/getfacl/Makefile +++ b/bin/getfacl/Makefile @@ -1,6 +1,5 @@ # $FreeBSD$ PROG= getfacl -WARNS?= 2 .include diff --git a/bin/hostname/Makefile b/bin/hostname/Makefile index 3053b90..3c7997f 100644 --- a/bin/hostname/Makefile +++ b/bin/hostname/Makefile @@ -3,6 +3,4 @@ PROG= hostname -WARNS?= 2 - .include diff --git a/bin/kill/Makefile b/bin/kill/Makefile index 033fdaa..55ef16d 100644 --- a/bin/kill/Makefile +++ b/bin/kill/Makefile @@ -3,6 +3,4 @@ PROG= kill -WARNS?= 2 - .include diff --git a/bin/ln/Makefile b/bin/ln/Makefile index 90a37d3..b541f8b 100644 --- a/bin/ln/Makefile +++ b/bin/ln/Makefile @@ -7,6 +7,4 @@ MAN= ln.1 symlink.7 LINKS= ${BINDIR}/ln ${BINDIR}/link MLINKS= ln.1 link.1 -WARNS?= 2 - .include diff --git a/bin/ls/Makefile b/bin/ls/Makefile index a4345ff..65286ef 100644 --- a/bin/ls/Makefile +++ b/bin/ls/Makefile @@ -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 diff --git a/bin/mkdir/Makefile b/bin/mkdir/Makefile index 57bea68..fadc6b2 100644 --- a/bin/mkdir/Makefile +++ b/bin/mkdir/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= mkdir -WARNS?= 2 .include diff --git a/bin/mv/Makefile b/bin/mv/Makefile index ce2a5e8..8405782 100644 --- a/bin/mv/Makefile +++ b/bin/mv/Makefile @@ -2,6 +2,5 @@ # $FreeBSD$ PROG= mv -WARNS?= 2 .include diff --git a/bin/pax/Makefile b/bin/pax/Makefile index f142bfc..02673fd 100644 --- a/bin/pax/Makefile +++ b/bin/pax/Makefile @@ -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 diff --git a/bin/ps/Makefile b/bin/ps/Makefile index 1381ee9..180ee78 100644 --- a/bin/ps/Makefile +++ b/bin/ps/Makefile @@ -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 diff --git a/bin/pwd/Makefile b/bin/pwd/Makefile index 718cd46..129ed63 100644 --- a/bin/pwd/Makefile +++ b/bin/pwd/Makefile @@ -5,6 +5,4 @@ PROG= pwd LINKS= ${BINDIR}/pwd ${BINDIR}/realpath MAN= pwd.1 realpath.1 -WARNS?= 2 - .include diff --git a/bin/rcp/Makefile b/bin/rcp/Makefile index c3d2483..b266813 100644 --- a/bin/rcp/Makefile +++ b/bin/rcp/Makefile @@ -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 diff --git a/bin/rm/Makefile b/bin/rm/Makefile index 2544a15..7b85cdf 100644 --- a/bin/rm/Makefile +++ b/bin/rm/Makefile @@ -2,7 +2,6 @@ # $FreeBSD$ PROG= rm -WARNS?= 2 SRCS= rm.c LINKS= ${BINDIR}/rm ${BINDIR}/unlink diff --git a/bin/rmail/Makefile b/bin/rmail/Makefile index 87cd9cc..9de213c 100644 --- a/bin/rmail/Makefile +++ b/bin/rmail/Makefile @@ -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 diff --git a/bin/rmdir/Makefile b/bin/rmdir/Makefile index 23df216..c2c7f30 100644 --- a/bin/rmdir/Makefile +++ b/bin/rmdir/Makefile @@ -3,6 +3,4 @@ PROG= rmdir -WARNS?= 2 - .include diff --git a/bin/setfacl/Makefile b/bin/setfacl/Makefile index 9823b55..ff67650 100644 --- a/bin/setfacl/Makefile +++ b/bin/setfacl/Makefile @@ -3,6 +3,4 @@ PROG= setfacl SRCS= file.c mask.c merge.c remove.c setfacl.c util.c -WARNS?= 2 - .include diff --git a/bin/sh/Makefile b/bin/sh/Makefile index 64eb0f0..33ca205 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -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 diff --git a/bin/sleep/Makefile b/bin/sleep/Makefile index 2b092c36..4ff7330 100644 --- a/bin/sleep/Makefile +++ b/bin/sleep/Makefile @@ -3,6 +3,4 @@ PROG= sleep -WARNS?= 2 - .include diff --git a/bin/stty/Makefile b/bin/stty/Makefile index 349dd81..82b15eb 100644 --- a/bin/stty/Makefile +++ b/bin/stty/Makefile @@ -4,6 +4,4 @@ PROG= stty SRCS= cchar.c gfmt.c key.c modes.c print.c stty.c util.c -WARNS?= 2 - .include diff --git a/bin/sync/Makefile b/bin/sync/Makefile index ac74c73..72c664f 100644 --- a/bin/sync/Makefile +++ b/bin/sync/Makefile @@ -4,6 +4,4 @@ PROG= sync MAN= sync.8 -WARNS?= 2 - .include diff --git a/bin/test/Makefile b/bin/test/Makefile index 2a9c4d7..c1bc62c 100644 --- a/bin/test/Makefile +++ b/bin/test/Makefile @@ -5,6 +5,4 @@ PROG= test LINKS= ${BINDIR}/test ${BINDIR}/[ MLINKS= test.1 '[.1' -WARNS?= 2 - .include -- cgit v1.1