From db47efdbd1feb2e0f1d88156104ee50822667132 Mon Sep 17 00:00:00 2001 From: Martin Taibr Date: Mon, 28 Aug 2017 17:03:09 +0200 Subject: [PATCH] a somewhat hidden option to allow warnings when debugging --- qcsrc/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 \ -- 2.39.2