From d23812b8f4376ab05af701e07ad16ff7b1d3bbea Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Sat, 2 Mar 2024 04:49:28 +0000 Subject: Allow to disable -Werror at 'make' time Having -Werror enabled all the time when developing can be a nuisance, allow to disable it by passing E=0 to make, e.g $ make E=0 ... This will set -Wno-error overriding the previously set -Werror. Co-developed-by: Alejandro Colomar Signed-off-by: Alejandro Colomar Signed-off-by: Andrew Clayton --- auto/make | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'auto/make') diff --git a/auto/make b/auto/make index 1d54ab40..6c6d7e94 100644 --- a/auto/make +++ b/auto/make @@ -63,6 +63,14 @@ ifeq (\$D,1) CFLAGS += -O0 endif +# Optionally disable -Werror with +# make E=0 ... +E := 1 + +ifeq (\$E,0) + CFLAGS += -Wno-error +endif + END fi -- cgit