aboutsummaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2018-06-26 10:04:49 +0200
committerJérôme Forissier <jerome.forissier@linaro.org>2018-06-26 14:12:51 +0200
commitbeb065df6ee53d014366068a138ccdb780b733d0 (patch)
tree22af7d216696dffdee395a15323aa658b4590fab /mk
parent0d39a8dd13e0e926d3003a40d3a26354c4f0a0f7 (diff)
Do not set -Werror by default
Having -Werror turned on by default can be annoying, because not everyone uses the same compiler, and different compiler versions have different warnings. Therefore, provide CFG_WERROR to turn it on instead. Enable CFG_WERROR in the CI scripts because we still don't want warnings with the officially supported compilers. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/compile.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/compile.mk b/mk/compile.mk
index 5559926c..5c37df6f 100644
--- a/mk/compile.mk
+++ b/mk/compile.mk
@@ -20,7 +20,7 @@ comp-cflags$(sm) = -std=gnu99
comp-aflags$(sm) =
comp-cppflags$(sm) =
-ifndef NOWERROR
+ifeq ($(CFG_WERROR),y)
comp-cflags$(sm) += -Werror
endif
comp-cflags$(sm) += -fdiagnostics-show-option