suppress redundant-decls warnings for freertos examples

This commit is contained in:
hathach
2022-06-24 21:53:46 +07:00
parent 835ab01cab
commit 1d6918ce41
4 changed files with 4 additions and 3 deletions

View File

@@ -29,7 +29,7 @@ SRC_C += \
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
# Suppress FreeRTOS warnings
CFLAGS += -Wno-error=cast-qual
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
# FreeRTOS (lto + Os) linker issue
LDFLAGS += -Wl,--undefined=vTaskSwitchContext