From: Martin Taibr Date: Mon, 28 Aug 2017 15:03:09 +0000 (+0200) Subject: a somewhat hidden option to allow warnings when debugging X-Git-Tag: xonotic-v0.8.5~2325^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=db47efdbd1feb2e0f1d88156104ee50822667132;p=xonotic%2Fxonotic-data.pk3dir.git a somewhat hidden option to allow warnings when debugging --- diff --git a/qcsrc/Makefile b/qcsrc/Makefile index bd17dad6a..2941f6320 100644 --- a/qcsrc/Makefile +++ b/qcsrc/Makefile @@ -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 \