X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2FMakefile;h=d09b2c5ccffa730255a6545d0f411a11adc05fc5;hp=bfea08b5f92df070fbcc59269b5ec65ed7bb3162;hb=af43b181a15f348a4de2045b716ebc7765ce8f9f;hpb=e520d4b32e53462b9e22a2a923f6ba2fe2909226 diff --git a/qcsrc/Makefile b/qcsrc/Makefile index bfea08b5f9..d09b2c5ccf 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 \