Only set WARNS if not defined

This would allow interested parties to do experimental runs with an
environment set appropriately to raise all the warnings throughout the
build; e.g. env WARNS=6 NO_WERROR=yes buildworld.

Not currently touching the numerous instances in ^/tools.

MFC after:	1 week
This commit is contained in:
Kyle Evans 2020-09-11 13:28:37 +00:00
parent b876085f55
commit ecebb3cc1d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365631
19 changed files with 19 additions and 19 deletions

View File

@ -71,7 +71,7 @@ cxxrt_${_S}: ${_LIBCXXRTDIR}/${_S} .NOMETA
ln -sf ${.ALLSRC} ${.TARGET}
.endfor
WARNS= 0
WARNS?= 0
CFLAGS+= -isystem ${HDRDIR}
CFLAGS+= -isystem ${_LIBCXXRTDIR}
CFLAGS+= -nostdinc++

View File

@ -20,7 +20,7 @@ SRCS+= libelftc_dem_gnu3.c\
typeinfo.cc\
guard.cc
WARNS= 0
WARNS?= 0
CFLAGS+= -isystem ${SRCDIR} -nostdinc++
CXXSTD?= c++14
VERSION_MAP= ${.CURDIR}/Version.map

View File

@ -15,6 +15,6 @@ INTERNALLIB=
CFLAGS+= -I${.CURDIR}
WARNS= 3
WARNS?= 3
.include <bsd.lib.mk>

View File

@ -12,7 +12,7 @@ INCS= sqlite3.h sqlite3ext.h
SQLITE= ${SRCTOP}/contrib/sqlite3
.PATH: ${SQLITE}
WARNS= 3
WARNS?= 3
CFLAGS+= -I${SQLITE} \
-DUSE_PREAD=1 \
-DSTDC_HEADERS=1 \

View File

@ -23,7 +23,7 @@ SRCS= ucl_emitter_streamline.c \
INCS= ucl.h
LIBADD= m
WARNS= 1
WARNS?= 1
CFLAGS+= -I${LIBUCL_DIR}/include \
-I${LIBUCL_DIR}/src \
-I${LIBUCL_DIR}/uthash \

View File

@ -33,7 +33,7 @@ SRCS= entropy_common.c \
debug.c \
hist.c \
fastcover.c
WARNS= 2
WARNS?= 2
INCS= zstd.h
CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_ \
-DZSTD_MULTITHREAD=1

View File

@ -2,7 +2,7 @@
MAN=
WARNS= 2
WARNS?= 2
PROG= dma-mbox-create
BINMODE= 4554

View File

@ -35,7 +35,7 @@ BINMODE= 2555
.include <bsd.compiler.mk>
.if ${COMPILER_TYPE} == gcc
WARNS= 5
WARNS?= 5
.endif
.include <bsd.prog.mk>

View File

@ -5,7 +5,7 @@ PROG= gvinum
SRCS= gvinum.c gvinum.h geom_vinum_share.c
MAN= gvinum.8
WARNS= 2
WARNS?= 2
CFLAGS+= -I${SRCTOP}/sys -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit
LIBADD= edit geom

View File

@ -11,6 +11,6 @@ MOUNT= ${SRCTOP}/sbin/mount
CFLAGS+= -I${MOUNT}
.PATH: ${MOUNT}
WARNS= 3
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -5,7 +5,7 @@
BOOT1?= boot1
PROG= ${BOOT1}.sym
INTERNALPROG=
WARNS= 6
WARNS?= 6
CFLAGS+= -DEFI_BOOT1
# We implement a slightly non-standard %S in that it always takes a

View File

@ -13,5 +13,5 @@ CFLAGS+= -DBOOTPROG=\"gptboot.efi\"
CFLAGS+= -DHAVE_MEMCPY -I${SRCTOP}/sys/contrib/zlib
SRCS+= gpt.c
CWARNFLAGS.gpt.c+= -Wno-sign-compare -Wno-cast-align
WARNS=6
WARNS?=6
.include "${.CURDIR}/../boot1/Makefile"

View File

@ -28,7 +28,7 @@ SRCS+= lerrno.c lstd.c lutils.c
.PATH: ${FLUASRC}/modules
SRCS+= lfs.c
WARNS= 3
WARNS?= 3
CFLAGS+= -DLUA_PATH=\"${LUAPATH}\" -DLUA_PATH_DEFAULT=\"${LUAPATH}/\?.lua\"
CFLAGS+= -ffreestanding -nostdlib -DLUA_USE_POSIX

View File

@ -22,7 +22,7 @@ NO_SHARED?= YES
SUBDIR+= tests
.endif
WARNS=3
WARNS?=3
CFLAGS+= -DNO_PWD_OVERRIDE
.if make(after-import)

View File

@ -13,7 +13,7 @@ SRCS= charmap.c \
time.c \
wide.c
WARNS= 3
WARNS?= 3
${SRCS:M*.c}: parser.h
parser.h: parser.y

View File

@ -22,7 +22,7 @@ SRCS+= tokenizer.l
.endif
GENFILES= tokenizer.c parser.c parser.h
WARNS= 3
WARNS?= 3
tokenizer.o: parser.h

View File

@ -1,7 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
WARNS= 3
WARNS?= 3
PROG_CXX= users
CXXFLAGS+= -fno-rtti

View File

@ -26,7 +26,7 @@ MLINKS= zstd.1 unzstd.1 \
zstd.1 zstdcat.1 \
zstd.1 zstdmt.1
WARNS= 2
WARNS?= 2
LIBADD= zstd
.PATH: ${SRCTOP}/sys/contrib/zstd/programs

View File

@ -15,6 +15,6 @@ CFLAGS+=-I${.CURDIR}
CFLAGS+=-I${SRCTOP}/contrib/pf/libevent
CFLAGS+=-I${SRCTOP}/lib/libopenbsd
WARNS= 2
WARNS?= 2
.include <bsd.prog.mk>