From: bones_was_here Date: Mon, 30 Oct 2023 00:18:48 +0000 (+1000) Subject: build: disallow use of VLAs X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=ceb0443a38d14772e6bacb4c6215b6b209cf8bff;p=xonotic%2Fdarkplaces.git build: disallow use of VLAs They're no longer allowed in Linux for safety and performance reasons. Signed-off-by: bones_was_here --- 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)