From 9cd53c56edc5477cdd5af11e43a252162a19cce8 Mon Sep 17 00:00:00 2001 From: Jacob Garber Date: Thu, 27 Jun 2019 13:23:38 -0600 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/33846 Reviewed-by: Patrick Georgi Tested-by: build bot (Jenkins) --- payloads/nvramcui/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'payloads/nvramcui') 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 -- cgit v1.2.3