]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - makefile
Add -Wc++-compat flag and fix its sole warning. This *should* be safe.
[xonotic/darkplaces.git] / makefile
index 4fb547a049f090942ee57d9097e7b93c45f4eccc..38550197ece1d5a3fd01227151934ff5356be0c9 100644 (file)
--- a/makefile
+++ b/makefile
@@ -217,7 +217,7 @@ ifeq ($(WIN64RELEASE), 1)
 #      WINDRES=$(TARGET)-windres
 endif
 
-CFLAGS_WARNINGS=-Wall -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
+CFLAGS_WARNINGS=-Wall -Werror=c++-compat -Wshadow -Wold-style-definition -Wstrict-prototypes -Wsign-compare -Wdeclaration-after-statement -Wmissing-prototypes
 
 
 ifeq ($(DP_MAKE_TARGET), mingw)