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