svn commit: r365821 - in stable/12: gnu/usr.bin/gperf lib/libc++ lib/libcxxrt lib/libopenbsd lib/libsqlite3 lib/libucl lib/libzstd libexec/dma/dma-mbox-create libexec/dma/dmagent sbin/gvinum sbin/t...
Kyle Evans
kevans at FreeBSD.org
Wed Sep 16 23:17:21 UTC 2020
Author: kevans
Date: Wed Sep 16 23:17:15 2020
New Revision: 365821
URL: https://svnweb.freebsd.org/changeset/base/365821
Log:
MFC r365631: 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.
Modified:
stable/12/gnu/usr.bin/gperf/Makefile
stable/12/lib/libc++/Makefile
stable/12/lib/libcxxrt/Makefile
stable/12/lib/libopenbsd/Makefile
stable/12/lib/libsqlite3/Makefile
stable/12/lib/libucl/Makefile
stable/12/lib/libzstd/Makefile
stable/12/libexec/dma/dma-mbox-create/Makefile
stable/12/libexec/dma/dmagent/Makefile
stable/12/sbin/gvinum/Makefile
stable/12/sbin/tunefs/Makefile
stable/12/stand/efi/boot1/Makefile
stable/12/stand/efi/gptboot/Makefile
stable/12/stand/liblua/Makefile
stable/12/usr.bin/bmake/Makefile.inc
stable/12/usr.bin/iscsictl/Makefile
stable/12/usr.bin/localedef/Makefile
stable/12/usr.bin/m4/Makefile
stable/12/usr.bin/users/Makefile
stable/12/usr.bin/zstd/Makefile
stable/12/usr.sbin/autofs/Makefile
stable/12/usr.sbin/iscsid/Makefile
stable/12/usr.sbin/uefisign/Makefile
stable/12/usr.sbin/ypldap/Makefile
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/gnu/usr.bin/gperf/Makefile
==============================================================================
--- stable/12/gnu/usr.bin/gperf/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/gnu/usr.bin/gperf/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -9,7 +9,7 @@ PROG_CXX= gperf
SRCS= bool-array.cc hash-table.cc input.cc keyword-list.cc keyword.cc \
main.cc options.cc output.cc positions.cc search.cc version.cc \
getline.cc hash.cc
-WARNS= 1
+WARNS?= 1
MAN= gperf.1 gperf.7
CXXFLAGS+= -I${GPERFDIR}/lib -I${.CURDIR}
Modified: stable/12/lib/libc++/Makefile
==============================================================================
--- stable/12/lib/libc++/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libc++/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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++
Modified: stable/12/lib/libcxxrt/Makefile
==============================================================================
--- stable/12/lib/libcxxrt/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libcxxrt/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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
Modified: stable/12/lib/libopenbsd/Makefile
==============================================================================
--- stable/12/lib/libopenbsd/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libopenbsd/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -10,6 +10,6 @@ INTERNALLIB=
CFLAGS+= -I${.CURDIR}
-WARNS= 3
+WARNS?= 3
.include <bsd.lib.mk>
Modified: stable/12/lib/libsqlite3/Makefile
==============================================================================
--- stable/12/lib/libsqlite3/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libsqlite3/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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 \
Modified: stable/12/lib/libucl/Makefile
==============================================================================
--- stable/12/lib/libucl/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libucl/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -23,7 +23,7 @@ SRCS= ucl_emitter_streamline.c \
INCS= ucl.h
LIBADD= m
-WARNS= 1
+WARNS?= 1
CFLAGS+= -I${LIBUCL}/include \
-I${LIBUCL}/src \
-I${LIBUCL}/uthash \
Modified: stable/12/lib/libzstd/Makefile
==============================================================================
--- stable/12/lib/libzstd/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/lib/libzstd/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -25,7 +25,7 @@ SRCS= entropy_common.c \
zstd_ldm.c \
zstd_opt.c \
zstd_double_fast.c
-WARNS= 2
+WARNS?= 2
INCS= zstd.h
CFLAGS+= -I${ZSTDDIR}/lib -I${ZSTDDIR}/lib/common -DXXH_NAMESPACE=ZSTD_ \
-DZSTD_MULTITHREAD=1
Modified: stable/12/libexec/dma/dma-mbox-create/Makefile
==============================================================================
--- stable/12/libexec/dma/dma-mbox-create/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/libexec/dma/dma-mbox-create/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -2,7 +2,7 @@
MAN=
-WARNS= 2
+WARNS?= 2
PROG= dma-mbox-create
BINMODE= 4554
Modified: stable/12/libexec/dma/dmagent/Makefile
==============================================================================
--- stable/12/libexec/dma/dmagent/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/libexec/dma/dmagent/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -35,7 +35,7 @@ BINMODE= 2555
.include <bsd.compiler.mk>
.if ${COMPILER_TYPE} == gcc
-WARNS= 5
+WARNS?= 5
.endif
.include <bsd.prog.mk>
Modified: stable/12/sbin/gvinum/Makefile
==============================================================================
--- stable/12/sbin/gvinum/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/sbin/gvinum/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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
Modified: stable/12/sbin/tunefs/Makefile
==============================================================================
--- stable/12/sbin/tunefs/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/sbin/tunefs/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -11,6 +11,6 @@ MOUNT= ${SRCTOP}/sbin/mount
CFLAGS+= -I${MOUNT}
.PATH: ${MOUNT}
-WARNS= 3
+WARNS?= 3
.include <bsd.prog.mk>
Modified: stable/12/stand/efi/boot1/Makefile
==============================================================================
--- stable/12/stand/efi/boot1/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/stand/efi/boot1/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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
Modified: stable/12/stand/efi/gptboot/Makefile
==============================================================================
--- stable/12/stand/efi/gptboot/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/stand/efi/gptboot/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -13,5 +13,5 @@ CFLAGS+= -I${.CURDIR}
CFLAGS+= -DBOOTPROG=\"gptboot.efi\"
SRCS+= gpt.c
CWARNFLAGS.gpt.c+= -Wno-sign-compare -Wno-cast-align
-WARNS=6
+WARNS?=6
.include "${.CURDIR}/../boot1/Makefile"
Modified: stable/12/stand/liblua/Makefile
==============================================================================
--- stable/12/stand/liblua/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/stand/liblua/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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
Modified: stable/12/usr.bin/bmake/Makefile.inc
==============================================================================
--- stable/12/usr.bin/bmake/Makefile.inc Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/bmake/Makefile.inc Wed Sep 16 23:17:15 2020 (r365821)
@@ -22,7 +22,7 @@ NO_SHARED?= YES
SUBDIR+= tests
.endif
-WARNS=3
+WARNS?=3
CFLAGS+= -DNO_PWD_OVERRIDE
.if make(after-import)
Modified: stable/12/usr.bin/iscsictl/Makefile
==============================================================================
--- stable/12/usr.bin/iscsictl/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/iscsictl/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -13,7 +13,7 @@ YFLAGS+= -v
LFLAGS+= -i
CLEANFILES= y.tab.c y.tab.h y.output
-WARNS= 6
+WARNS?= 6
NO_WMISSING_VARIABLE_DECLARATIONS=
.include <bsd.prog.mk>
Modified: stable/12/usr.bin/localedef/Makefile
==============================================================================
--- stable/12/usr.bin/localedef/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/localedef/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -13,7 +13,7 @@ SRCS= charmap.c \
time.c \
wide.c
-WARNS= 3
+WARNS?= 3
${SRCS:M*.c}: parser.h
parser.h: parser.y
Modified: stable/12/usr.bin/m4/Makefile
==============================================================================
--- stable/12/usr.bin/m4/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/m4/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -14,7 +14,7 @@ NO_WMISSING_VARIABLE_DECLARATIONS=
SRCS= eval.c expr.c look.c main.c misc.c gnum4.c trace.c parser.y tokenizer.l
-WARNS= 3
+WARNS?= 3
tokenizer.o: parser.h
Modified: stable/12/usr.bin/users/Makefile
==============================================================================
--- stable/12/usr.bin/users/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/users/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -1,7 +1,7 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
-WARNS= 3
+WARNS?= 3
PROG_CXX= users
CXXFLAGS+= -fno-rtti
Modified: stable/12/usr.bin/zstd/Makefile
==============================================================================
--- stable/12/usr.bin/zstd/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.bin/zstd/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -22,7 +22,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
Modified: stable/12/usr.sbin/autofs/Makefile
==============================================================================
--- stable/12/usr.sbin/autofs/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.sbin/autofs/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -24,7 +24,7 @@ LIBADD= util
MOUNT= ${SRCTOP}/sbin/mount
CFLAGS+=-I${MOUNT}
-WARNS= 6
+WARNS?= 6
LINKS= ${BINDIR}/automountd ${BINDIR}/automount
LINKS+= ${BINDIR}/automountd ${BINDIR}/autounmountd
Modified: stable/12/usr.sbin/iscsid/Makefile
==============================================================================
--- stable/12/usr.sbin/iscsid/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.sbin/iscsid/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -11,6 +11,6 @@ MAN= iscsid.8
LIBADD= md util
-WARNS= 6
+WARNS?= 6
.include <bsd.prog.mk>
Modified: stable/12/usr.sbin/uefisign/Makefile
==============================================================================
--- stable/12/usr.sbin/uefisign/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.sbin/uefisign/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -6,6 +6,6 @@ MAN= uefisign.8
LIBADD= crypto
-WARNS= 6
+WARNS?= 6
.include <bsd.prog.mk>
Modified: stable/12/usr.sbin/ypldap/Makefile
==============================================================================
--- stable/12/usr.sbin/ypldap/Makefile Wed Sep 16 23:14:22 2020 (r365820)
+++ stable/12/usr.sbin/ypldap/Makefile Wed Sep 16 23:17:15 2020 (r365821)
@@ -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>
More information about the svn-src-all
mailing list