From aec8af25c066c10b65ba2cff3af02ef45518e06b Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Mon, 5 Oct 2015 12:07:49 +0200 Subject: [PATCH] jn516x: added WERROR --- platform/jn516x/Makefile.jn516x | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/platform/jn516x/Makefile.jn516x b/platform/jn516x/Makefile.jn516x index bce6adbd5..b3dce252a 100644 --- a/platform/jn516x/Makefile.jn516x +++ b/platform/jn516x/Makefile.jn516x @@ -48,6 +48,11 @@ LDLIBS := $(subst MiniMac_JN516x, ,$(LDLIBS)) LDLIBS += JPT_$(JENNIC_CHIP) endif +# Warings as error +ifdef WERROR +CFLAGS += -Werror +endif + # Pass DEBUG as CFLAG ifeq ($(DEBUG),SW) CFLAGS += -DDEBUG=1