mirror of
https://github.com/hathach/tinyusb.git
synced 2025-04-19 05:42:28 +00:00
suppress redundant-decls warnings for freertos examples
This commit is contained in:
parent
835ab01cab
commit
1d6918ce41
@ -30,7 +30,7 @@ SRC_C += \
|
|||||||
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
||||||
|
|
||||||
# Suppress FreeRTOS warnings
|
# Suppress FreeRTOS warnings
|
||||||
CFLAGS += -Wno-error=cast-qual
|
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
|
||||||
|
|
||||||
# FreeRTOS (lto + Os) linker issue
|
# FreeRTOS (lto + Os) linker issue
|
||||||
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
@ -53,6 +53,7 @@
|
|||||||
#if CFG_TUSB_MCU == OPT_MCU_MM32F327X
|
#if CFG_TUSB_MCU == OPT_MCU_MM32F327X
|
||||||
extern u32 SystemCoreClock;
|
extern u32 SystemCoreClock;
|
||||||
#else
|
#else
|
||||||
|
// FIXME cause redundant-decls warnings
|
||||||
extern uint32_t SystemCoreClock;
|
extern uint32_t SystemCoreClock;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ SRC_C += \
|
|||||||
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
$(subst ../../../,,$(wildcard ../../../$(FREERTOS_SRC)/portable/GCC/$(FREERTOS_PORT)/*.c))
|
||||||
|
|
||||||
# Suppress FreeRTOS warnings
|
# Suppress FreeRTOS warnings
|
||||||
CFLAGS += -Wno-error=cast-qual
|
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
|
||||||
|
|
||||||
# FreeRTOS (lto + Os) linker issue
|
# FreeRTOS (lto + Os) linker issue
|
||||||
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
LDFLAGS += -Wl,--undefined=vTaskSwitchContext
|
||||||
|
@ -12,7 +12,7 @@ CFLAGS += \
|
|||||||
-DCFG_TUSB_MCU=OPT_MCU_SAMD11
|
-DCFG_TUSB_MCU=OPT_MCU_SAMD11
|
||||||
|
|
||||||
# suppress warning caused by vendor mcu driver
|
# suppress warning caused by vendor mcu driver
|
||||||
CFLAGS += -Wno-error=cast-qual
|
CFLAGS += -Wno-error=cast-qual -Wno-error=redundant-decls
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
src/portable/microchip/samd/dcd_samd.c \
|
src/portable/microchip/samd/dcd_samd.c \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user