From 1a8ce043ed937012454e5b79396455f9c5568a68 Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 17 May 2020 14:24:15 +0700 Subject: enable -Wcast-align suppress vendor sdk driver at board.mk --- examples/make.mk | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/make.mk b/examples/make.mk index 449dc899d..2ea50753b 100644 --- a/examples/make.mk +++ b/examples/make.mk @@ -63,11 +63,9 @@ CFLAGS += \ -Wwrite-strings \ -Wsign-compare \ -Wmissing-format-attribute \ - -Wunreachable-code - -# This causes lots of warning with nrf5x build due to nrfx code -# CFLAGS += -Wcast-align - + -Wunreachable-code \ + -Wcast-align + # Debugging/Optimization ifeq ($(DEBUG), 1) CFLAGS += -Og -ggdb -- cgit v1.3.1 From a7db945cff33522062818d3c4a68296b7ddccf9a Mon Sep 17 00:00:00 2001 From: hathach Date: Sun, 17 May 2020 15:34:14 +0700 Subject: temporariyly suppress cast-align warning for net_device and net example --- examples/device/net_lwip_webserver/Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'examples') diff --git a/examples/device/net_lwip_webserver/Makefile b/examples/device/net_lwip_webserver/Makefile index fa93cf87f..5279c49e2 100644 --- a/examples/device/net_lwip_webserver/Makefile +++ b/examples/device/net_lwip_webserver/Makefile @@ -6,6 +6,9 @@ CFLAGS += \ -DTCP_WND=2*TCP_MSS \ -DHTTPD_USE_CUSTOM_FSDATA=0 +# TODO rndis_reports.c and net_device cause cast algin warnings +CFLAGS += -Wno-error=cast-align + INC += \ src \ $(TOP)/hw \ -- cgit v1.3.1