]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
a somewhat hidden option to allow warnings when debugging
authorMartin Taibr <taibr.martin@gmail.com>
Mon, 28 Aug 2017 15:03:09 +0000 (17:03 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Mon, 28 Aug 2017 15:03:09 +0000 (17:03 +0200)
qcsrc/Makefile

index bd17dad6aaf5e93c0c729891009cfedfa85ca258..2941f6320692a46f7932af0e163a741bb2d9c1e5 100644 (file)
@@ -29,6 +29,10 @@ ifndef ZIP
     endif
 endif
 
     endif
 endif
 
+# Set to empty string to temporarily enable warnings when debugging
+QCCFLAGS_WERROR ?= \
+       -Werror
+
 # We eventually need to get rid of these
 QCCFLAGS_WTFS ?= \
        -Wno-field-redeclared
 # We eventually need to get rid of these
 QCCFLAGS_WTFS ?= \
        -Wno-field-redeclared
@@ -48,7 +52,8 @@ QCCFLAGS ?= \
        -std=gmqcc \
        -Ooverlap-locals \
        -O3 \
        -std=gmqcc \
        -Ooverlap-locals \
        -O3 \
-       -Werror -Wall \
+       $(QCCFLAGS_WERROR) \
+       -Wall \
        $(QCCFLAGS_WTFS) \
        -flno -futf8 -fno-bail-on-werror \
        -frelaxed-switch -freturn-assignments \
        $(QCCFLAGS_WTFS) \
        -flno -futf8 -fno-bail-on-werror \
        -frelaxed-switch -freturn-assignments \