summaryrefslogtreecommitdiff
path: root/payloads/nvramcui/Makefile
diff options
context:
space:
mode:
authorJacob Garber <jgarber1@ualberta.ca>2019-06-27 13:23:38 -0600
committerPatrick Georgi <pgeorgi@google.com>2019-08-20 20:57:01 +0000
commit9cd53c56edc5477cdd5af11e43a252162a19cce8 (patch)
treeb2bd8dae6049db459fd3cf637ba3b5950424e4d7 /payloads/nvramcui/Makefile
parentf5238b243fbb8314b8e5d26e7c8279b8e9d28c94 (diff)
downloadcoreboot-9cd53c56edc5477cdd5af11e43a252162a19cce8.tar.xz
Makefile.inc, payloads: Enable -Wvla
Variable length arrays are dangerous, so let's make sure they don't sneak back into coreboot or any of the payloads. Change-Id: Idf2488cf0efab51c9569a3789ae953368b61880c Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Reviewed-on: https://review.coreboot.org/c/coreboot/+/33846 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'payloads/nvramcui/Makefile')
-rw-r--r--payloads/nvramcui/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/nvramcui/Makefile b/payloads/nvramcui/Makefile
index c6a9cd0cf4..bf7053b9a6 100644
--- a/payloads/nvramcui/Makefile
+++ b/payloads/nvramcui/Makefile
@@ -3,7 +3,7 @@ XCOMPILE=$(LIBPAYLOAD_DIR)/libpayload.xcompile
# build libpayload and put .config file in $(CURDIR) instead of ../libpayload
# to avoid pollute the libpayload source directory and possible conflicts
LPOPTS=obj="$(CURDIR)/build" DESTDIR="$(CURDIR)" DOTCONFIG="$(CURDIR)/.config"
-CFLAGS += -Wall -Werror -Os -ffreestanding -nostdinc -nostdlib
+CFLAGS += -Wall -Wvla -Werror -Os -ffreestanding -nostdinc -nostdlib
all: nvramcui.elf