]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - makefile
Add -Wshadow cflag and eliminate its warnings, including with g++
[xonotic/darkplaces.git] / makefile
index d3b6ce908ee98a38bb23e3ac78239cbad8d10535..4fb547a049f090942ee57d9097e7b93c45f4eccc 100644 (file)
--- a/makefile
+++ b/makefile
@@ -217,7 +217,7 @@ ifeq ($(WIN64RELEASE), 1)
 #      WINDRES=$(TARGET)-windres
 endif
 
-CFLAGS_WARNINGS=-Wall -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
+CFLAGS_WARNINGS=-Wall -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
 
 
 ifeq ($(DP_MAKE_TARGET), mingw)