X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2FMakefile;fp=qcsrc%2FMakefile;h=d09b2c5ccffa730255a6545d0f411a11adc05fc5;hb=88e815808cb794930e7a0d6257cfdb8b3456a9a1;hp=bfea08b5f92df070fbcc59269b5ec65ed7bb3162;hpb=6729b4872ef3a1d49ee3b86f8a1e4b1406db68e0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/Makefile b/qcsrc/Makefile index bfea08b5f..d09b2c5cc 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 \