X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2FMakefile;h=d09b2c5ccffa730255a6545d0f411a11adc05fc5;hp=bfea08b5f92df070fbcc59269b5ec65ed7bb3162;hb=8498e30a673dfaa06549fb97476303f18f2f4613;hpb=133d11b551774ae3a10508774d4628e2671c692a 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 \