]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Merge branch 'martin-t/warns' into 'master'
authorMario <zacjardine@y7mail.com>
Mon, 12 Feb 2018 05:28:56 +0000 (05:28 +0000)
committerMario <zacjardine@y7mail.com>
Mon, 12 Feb 2018 05:28:56 +0000 (05:28 +0000)
A somewhat hidden option to allow warnings when debugging (small MR)

See merge request xonotic/xonotic-data.pk3dir!475

qcsrc/Makefile

index bfea08b5f92df070fbcc59269b5ec65ed7bb3162..d09b2c5ccffa730255a6545d0f411a11adc05fc5 100644 (file)
@@ -29,6 +29,10 @@ ifndef ZIP
     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
@@ -48,7 +52,8 @@ QCCFLAGS ?= \
        -std=gmqcc \
        -Ooverlap-locals \
        -O3 \
-       -Werror -Wall \
+       $(QCCFLAGS_WERROR) \
+       -Wall \
        $(QCCFLAGS_WTFS) \
        -flno -futf8 -fno-bail-on-werror \
        -frelaxed-switch -freturn-assignments \