]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
build: disallow use of VLAs
authorbones_was_here <bones_was_here@xonotic.au>
Mon, 30 Oct 2023 00:18:48 +0000 (10:18 +1000)
committerbones_was_here <bones_was_here@xonotic.au>
Thu, 23 Nov 2023 13:10:20 +0000 (23:10 +1000)
They're no longer allowed in Linux for safety and performance reasons.

Signed-off-by: bones_was_here <bones_was_here@xonotic.au>
makefile

index 36f6c93578813c3db21ac2181208c74d6a646e1c..1ca0fe1ad0d3d243d85ad48b098515e020b83785 100644 (file)
--- 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)