enable -Wcast-align

suppress vendor sdk driver at board.mk
This commit is contained in:
hathach
2020-05-17 14:24:15 +07:00
parent 17869f0999
commit 1a8ce043ed
23 changed files with 50 additions and 41 deletions

View File

@@ -9,8 +9,8 @@ CFLAGS += \
-DNRF52840_XXAA \
-DCONFIG_GPIO_AS_PINRESET
# nrfx issue undef _ARMCC_VERSION usage https://github.com/NordicSemiconductor/nrfx/issues/49
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter
# suppress warning caused by vendor mcu driver
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter -Wno-error=cast-align
# due to tusb_hal_nrf_power_event
GCCVERSION = $(firstword $(subst ., ,$(shell arm-none-eabi-gcc -dumpversion)))