diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-09-11 13:28:37 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-09-11 13:28:37 +0000 |
commit | ecebb3cc1d2d074defc302d8ae6820bb6b20d4fe (patch) | |
tree | 82d4975af5d9f605e80daeb706f1b9f5ce4eb59e /stand | |
parent | b876085f5589f4e6d531d97ad902c5730ec55339 (diff) | |
download | src-ecebb3cc1d2d074defc302d8ae6820bb6b20d4fe.tar.gz src-ecebb3cc1d2d074defc302d8ae6820bb6b20d4fe.zip |
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
Notes
Notes:
svn path=/head/; revision=365631
Diffstat (limited to 'stand')
-rw-r--r-- | stand/efi/boot1/Makefile | 2 | ||||
-rw-r--r-- | stand/efi/gptboot/Makefile | 2 | ||||
-rw-r--r-- | stand/liblua/Makefile | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/stand/efi/boot1/Makefile b/stand/efi/boot1/Makefile index b8644ace4d44..0cad67d21050 100644 --- a/stand/efi/boot1/Makefile +++ b/stand/efi/boot1/Makefile @@ -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 diff --git a/stand/efi/gptboot/Makefile b/stand/efi/gptboot/Makefile index ba0df4ebeeeb..7d6dee85f93f 100644 --- a/stand/efi/gptboot/Makefile +++ b/stand/efi/gptboot/Makefile @@ -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" diff --git a/stand/liblua/Makefile b/stand/liblua/Makefile index 9693f579f801..0f4047769b77 100644 --- a/stand/liblua/Makefile +++ b/stand/liblua/Makefile @@ -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 |