Lock down with WFORMAT=1 except those directories with unfixed warnings.
Tested on i386 and alpha.
This commit is contained in:
parent
c698668189
commit
afe781faa2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=90166
@ -5,3 +5,4 @@ BINDIR?= /bin
|
|||||||
CFLAGS+= -Wall -Wformat
|
CFLAGS+= -Wall -Wformat
|
||||||
NOSHARED?= YES
|
NOSHARED?= YES
|
||||||
WARNS?= 2
|
WARNS?= 2
|
||||||
|
WFORMAT?= 1
|
||||||
|
@ -14,6 +14,7 @@ SUBDIR= nls
|
|||||||
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
|
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
|
||||||
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
|
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
WFORMAT=0
|
||||||
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
|
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.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 \
|
sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
PROG= date
|
PROG= date
|
||||||
SRCS= date.c netdate.c vary.c
|
SRCS= date.c netdate.c vary.c
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
WFORMAT=0
|
||||||
DPADD= ${LIBUTIL}
|
DPADD= ${LIBUTIL}
|
||||||
LDADD= -lutil
|
LDADD= -lutil
|
||||||
|
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
PROG= dd
|
PROG= dd
|
||||||
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
SRCS= args.c conv.c conv_tab.c dd.c misc.c position.c
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
WFORMAT=0
|
||||||
|
|
||||||
MAINTAINER= green@FreeBSD.org
|
MAINTAINER= green@FreeBSD.org
|
||||||
|
|
||||||
|
@ -11,5 +11,7 @@ CFLAGS+= -DCOLORLS
|
|||||||
DPADD+= ${LIBTERMCAP}
|
DPADD+= ${LIBTERMCAP}
|
||||||
LDADD+= -ltermcap
|
LDADD+= -ltermcap
|
||||||
.endif
|
.endif
|
||||||
|
WFORMAT=0
|
||||||
|
NO_WERROR=1
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -34,4 +34,6 @@ WARNS= 0
|
|||||||
#MAN= pax.1 tar.1 cpio.1
|
#MAN= pax.1 tar.1 cpio.1
|
||||||
#LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio
|
#LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio
|
||||||
|
|
||||||
|
WFORMAT?= 0
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -16,4 +16,6 @@ LDADD= -lm -lkvm
|
|||||||
#BINGRP= kmem
|
#BINGRP= kmem
|
||||||
#BINMODE=2555
|
#BINMODE=2555
|
||||||
|
|
||||||
|
WFORMAT?= 0
|
||||||
|
|
||||||
.include <bsd.prog.mk>
|
.include <bsd.prog.mk>
|
||||||
|
@ -6,10 +6,12 @@ SRCS= rcp.c util.c
|
|||||||
CFLAGS+=-DBINDIR=${BINDIR}
|
CFLAGS+=-DBINDIR=${BINDIR}
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
|
||||||
|
WFORMAT?= 0
|
||||||
|
|
||||||
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4)
|
.if exists(${DESTDIR}${LIBDIR}/libkrb.a) && defined(MAKE_KERBEROS4)
|
||||||
SRCS+= krcmd.c kcmd.c rcmd_util.c
|
SRCS+= krcmd.c kcmd.c rcmd_util.c
|
||||||
DPADD= ${LIBUTIL} ${LIBKRB} ${LIBCRYPTO}
|
DPADD= ${LIBUTIL} ${LIBKRB} ${LIBCRYPTO}
|
||||||
CFLAGS+=-DKERBEROS -DCRYPT -DHAVE_CONFIG_H \
|
CFLAGS+=-DCRYPT -DHAVE_CONFIG_H \
|
||||||
-I${.CURDIR}/../../kerberosIV/include \
|
-I${.CURDIR}/../../kerberosIV/include \
|
||||||
-I${.CURDIR}/../../crypto/kerberosIV/include \
|
-I${.CURDIR}/../../crypto/kerberosIV/include \
|
||||||
-I${.CURDIR}/../../crypto/kerberosIV/lib/roken \
|
-I${.CURDIR}/../../crypto/kerberosIV/lib/roken \
|
||||||
|
@ -12,6 +12,8 @@ MAN= rmail.8
|
|||||||
CFLAGS+=-I${SENDMAIL_DIR}/include
|
CFLAGS+=-I${SENDMAIL_DIR}/include
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
|
||||||
|
WFORMAT?= 0
|
||||||
|
|
||||||
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
.if exists(${.OBJDIR}/../../lib/libsmutil)
|
||||||
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
LIBSMUTILDIR:= ${.OBJDIR}/../../lib/libsmutil
|
||||||
.else
|
.else
|
||||||
|
@ -22,6 +22,7 @@ CFLAGS+=-DSHELL -I. -I${.CURDIR}
|
|||||||
# for debug:
|
# for debug:
|
||||||
# CFLAGS+= -g -DDEBUG=2
|
# CFLAGS+= -g -DDEBUG=2
|
||||||
WARNS= 0
|
WARNS= 0
|
||||||
|
WFORMAT=0
|
||||||
|
|
||||||
.PATH: ${.CURDIR}/bltin \
|
.PATH: ${.CURDIR}/bltin \
|
||||||
${.CURDIR}/../../bin/test
|
${.CURDIR}/../../bin/test
|
||||||
|
Loading…
Reference in New Issue
Block a user