add more warning option, also fix -Wconversion with rp2040

-Wuninitialized, -Wunused,  -Wredundant-decls
This commit is contained in:
hathach
2022-06-24 19:45:49 +07:00
parent 4639cac85c
commit 4f6e770eda
17 changed files with 58 additions and 42 deletions

View File

@@ -16,6 +16,9 @@ CFLAGS += \
# suppress warning caused by vendor mcu driver
CFLAGS += -Wno-error=undef -Wno-error=unused-parameter -Wno-error=cast-align -Wno-error=cast-qual
# warning caused by dcd_nrf5x.c due to include of usbd.h and re-declare of dcd_int_handler()
CFLAGS += -Wno-error=redundant-decls
# All source paths should be relative to the top level.
LD_FILE ?= hw/bsp/nrf/boards/$(BOARD)/nrf52840_s140_v6.ld