Date: Fri, 11 Sep 2020 13:28:38 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365631 - in head: lib/libc++ lib/libcxxrt lib/libopenbsd lib/libsqlite3 lib/libucl lib/libzstd libexec/dma/dma-mbox-create libexec/dma/dmagent sbin/gvinum sbin/tunefs stand/efi/boot1 s... Message-ID: <202009111328.08BDScrP061194@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kevans Date: Fri Sep 11 13:28:37 2020 New Revision: 365631 URL: https://svnweb.freebsd.org/changeset/base/365631 Log: 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 Modified: head/lib/libc++/Makefile head/lib/libcxxrt/Makefile head/lib/libopenbsd/Makefile head/lib/libsqlite3/Makefile head/lib/libucl/Makefile head/lib/libzstd/Makefile head/libexec/dma/dma-mbox-create/Makefile head/libexec/dma/dmagent/Makefile head/sbin/gvinum/Makefile head/sbin/tunefs/Makefile head/stand/efi/boot1/Makefile head/stand/efi/gptboot/Makefile head/stand/liblua/Makefile head/usr.bin/bmake/Makefile.inc head/usr.bin/localedef/Makefile head/usr.bin/m4/Makefile head/usr.bin/users/Makefile head/usr.bin/zstd/Makefile head/usr.sbin/ypldap/Makefile Modified: head/lib/libc++/Makefile ============================================================================== --- head/lib/libc++/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libc++/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/lib/libcxxrt/Makefile ============================================================================== --- head/lib/libcxxrt/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libcxxrt/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/lib/libopenbsd/Makefile ============================================================================== --- head/lib/libopenbsd/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libopenbsd/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -15,6 +15,6 @@ INTERNALLIB= CFLAGS+= -I${.CURDIR} -WARNS= 3 +WARNS?= 3 .include <bsd.lib.mk> Modified: head/lib/libsqlite3/Makefile ============================================================================== --- head/lib/libsqlite3/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libsqlite3/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/lib/libucl/Makefile ============================================================================== --- head/lib/libucl/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libucl/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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 \ Modified: head/lib/libzstd/Makefile ============================================================================== --- head/lib/libzstd/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/lib/libzstd/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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 Modified: head/libexec/dma/dma-mbox-create/Makefile ============================================================================== --- head/libexec/dma/dma-mbox-create/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/libexec/dma/dma-mbox-create/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -2,7 +2,7 @@ MAN= -WARNS= 2 +WARNS?= 2 PROG= dma-mbox-create BINMODE= 4554 Modified: head/libexec/dma/dmagent/Makefile ============================================================================== --- head/libexec/dma/dmagent/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/libexec/dma/dmagent/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -35,7 +35,7 @@ BINMODE= 2555 .include <bsd.compiler.mk> .if ${COMPILER_TYPE} == gcc -WARNS= 5 +WARNS?= 5 .endif .include <bsd.prog.mk> Modified: head/sbin/gvinum/Makefile ============================================================================== --- head/sbin/gvinum/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/sbin/gvinum/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/sbin/tunefs/Makefile ============================================================================== --- head/sbin/tunefs/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/sbin/tunefs/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -11,6 +11,6 @@ MOUNT= ${SRCTOP}/sbin/mount CFLAGS+= -I${MOUNT} .PATH: ${MOUNT} -WARNS= 3 +WARNS?= 3 .include <bsd.prog.mk> Modified: head/stand/efi/boot1/Makefile ============================================================================== --- head/stand/efi/boot1/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/stand/efi/boot1/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/stand/efi/gptboot/Makefile ============================================================================== --- head/stand/efi/gptboot/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/stand/efi/gptboot/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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" Modified: head/stand/liblua/Makefile ============================================================================== --- head/stand/liblua/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/stand/liblua/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/usr.bin/bmake/Makefile.inc ============================================================================== --- head/usr.bin/bmake/Makefile.inc Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.bin/bmake/Makefile.inc Fri Sep 11 13:28:37 2020 (r365631) @@ -22,7 +22,7 @@ NO_SHARED?= YES SUBDIR+= tests .endif -WARNS=3 +WARNS?=3 CFLAGS+= -DNO_PWD_OVERRIDE .if make(after-import) Modified: head/usr.bin/localedef/Makefile ============================================================================== --- head/usr.bin/localedef/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.bin/localedef/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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: head/usr.bin/m4/Makefile ============================================================================== --- head/usr.bin/m4/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.bin/m4/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -22,7 +22,7 @@ SRCS+= tokenizer.l .endif GENFILES= tokenizer.c parser.c parser.h -WARNS= 3 +WARNS?= 3 tokenizer.o: parser.h Modified: head/usr.bin/users/Makefile ============================================================================== --- head/usr.bin/users/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.bin/users/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -1,7 +1,7 @@ # @(#)Makefile 8.1 (Berkeley) 6/6/93 # $FreeBSD$ -WARNS= 3 +WARNS?= 3 PROG_CXX= users CXXFLAGS+= -fno-rtti Modified: head/usr.bin/zstd/Makefile ============================================================================== --- head/usr.bin/zstd/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.bin/zstd/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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 Modified: head/usr.sbin/ypldap/Makefile ============================================================================== --- head/usr.sbin/ypldap/Makefile Fri Sep 11 12:36:05 2020 (r365630) +++ head/usr.sbin/ypldap/Makefile Fri Sep 11 13:28:37 2020 (r365631) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009111328.08BDScrP061194>