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,6 +9,9 @@ CFLAGS += \
-DSTM32F405xx \
-DCFG_TUSB_MCU=OPT_MCU_STM32F4
# suppress warning caused by vendor mcu driver
CFLAGS += -Wno-error=cast-align
ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F4xx_HAL_Driver
ST_CMSIS = hw/mcu/st/st_driver/CMSIS/Device/ST/STM32F4xx