From 7d55e89563f8ab4599a1fa95a2923244a0758feb Mon Sep 17 00:00:00 2001 From: Simon Duquennoy Date: Mon, 5 Oct 2015 15:18:46 +0200 Subject: [PATCH] jn516x: enable -Wall --- platform/jn516x/Makefile.jn516x | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/platform/jn516x/Makefile.jn516x b/platform/jn516x/Makefile.jn516x index b3dce252a..50f0a393d 100644 --- a/platform/jn516x/Makefile.jn516x +++ b/platform/jn516x/Makefile.jn516x @@ -48,6 +48,12 @@ LDLIBS := $(subst MiniMac_JN516x, ,$(LDLIBS)) LDLIBS += JPT_$(JENNIC_CHIP) endif +# Enable all warnings +CFLAGS += -Wall +# Disable warnings that result many false positives with the Contiki core +CFLAGS += -Wno-strict-aliasing +CFLAGS += -Wno-cast-align + # Warings as error ifdef WERROR CFLAGS += -Werror @@ -69,9 +75,6 @@ SIZE:=$(CROSS_COMPILE)-size OBJCOPY:=$(CROSS_COMPILE)-objcopy OBJDUMP:=$(CROSS_COMPILE)-objdump -CFLAGS := $(subst -Wcast-align,,$(CFLAGS)) -CFLAGS := $(subst -Wall,,$(CFLAGS)) - ARCH = ccm-star.c exceptions.c rtimer-arch.c slip_uart0.c clock.c micromac-radio.c \ mtarch.c node-id.c watchdog.c log.c ringbufindex.c slip.c sprintf.c # Default uart0 for printf and slip