diff options
| author | Ha Thach <[email protected]> | 2020-05-18 13:21:37 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-05-18 13:21:37 +0700 |
| commit | 76bf96bcb0c12ba241ee4ecc175afb257e550d19 (patch) | |
| tree | 6be8654ae1d2fd78e257783b2535455df2597d9c /examples | |
| parent | 17869f0999d275ec6a8830c95999998f0f84fd03 (diff) | |
| parent | 550746097b81c07cdc2459371c809a3678fe1ff4 (diff) | |
Merge pull request #411 from hathach/fix-cast-align-warning
enable -Wcast-align
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/net_lwip_webserver/Makefile | 3 | ||||
| -rw-r--r-- | examples/make.mk | 8 |
2 files changed, 6 insertions, 5 deletions
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 \ 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 |
