From ceb0443a38d14772e6bacb4c6215b6b209cf8bff Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Mon, 30 Oct 2023 10:18:48 +1000 Subject: [PATCH] build: disallow use of VLAs They're no longer allowed in Linux for safety and performance reasons. Signed-off-by: bones_was_here --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 36f6c935..1ca0fe1a 100644 --- a/makefile +++ b/makefile @@ -227,7 +227,7 @@ ifeq ($(WIN64RELEASE), 1) # WINDRES=$(TARGET)-windres endif -CFLAGS_WARNINGS=-Wall -Winline -Werror=c++-compat -Wwrite-strings -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes +CFLAGS_WARNINGS=-Wall -Winline -Werror=vla -Werror=c++-compat -Wwrite-strings -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes ifeq ($(DP_MAKE_TARGET), mingw) -- 2.39.2