From e8003ecd71b0cc5d46d2cb277da59cd8700401b4 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Wed, 25 May 2016 23:46:07 -0500 Subject: [PATCH] Warn about use of variable length arrays --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 29c7560..2e54c9b 100644 --- a/Makefile +++ b/Makefile @@ -45,7 +45,8 @@ override CFLAGS := \ $(call cc-option,-Wpedantic) \ $(call cc-option,-Wdeclaration-after-statement) \ $(call cc-option,-Wmissing-prototypes) \ - $(call cc-option,-Wstrict-prototypes) + $(call cc-option,-Wstrict-prototypes) \ + $(call cc-option,-Wvla) cc-option = $(shell if $(CC) $(1) -c -x c /dev/null -o /dev/null \ 1>&2 2>/dev/null; then echo $(1); fi)