add -Wextra for more warnings to example

non-stack warning (probably mcu driver) should be suppressed in the
board.mk
This commit is contained in:
hathach
2019-09-27 00:15:43 +07:00
parent 7ba8e81852
commit 6183dbd0ce
30 changed files with 95 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ CFLAGS += \
-nostdlib -nostartfiles \
-DCFG_TUSB_MCU=OPT_MCU_STM32F2
# Suppress following warnings/error is required due to STM32F2xx_HAL_Driver.
# mcu driver cause following warnings
CFLAGS += -Wno-error=sign-compare
ST_HAL_DRIVER = hw/mcu/st/st_driver/STM32F2xx_HAL_Driver