mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/esp32: disable warnings in ESP-IDF for gcc 12.2
This commit is contained in:
parent
0de2570802
commit
d8d9a9bdc4
@ -164,6 +164,10 @@ INCLUDES = \
|
|||||||
# CONFIG_ESPTOOLPY_FLASHFREQ_* and CONFIG_FLASHMODE_*
|
# CONFIG_ESPTOOLPY_FLASHFREQ_* and CONFIG_FLASHMODE_*
|
||||||
CFLAGS = -include '$(RIOTBUILD_CONFIG_HEADER_C)' \
|
CFLAGS = -include '$(RIOTBUILD_CONFIG_HEADER_C)' \
|
||||||
|
|
||||||
|
# TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
|
||||||
|
CFLAGS += -Wno-error=format=
|
||||||
|
CFLAGS += -Wno-format
|
||||||
|
|
||||||
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
||||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include
|
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include
|
||||||
CFLAGS += -DCONFIG_IDF_TARGET_ARCH_RISCV
|
CFLAGS += -DCONFIG_IDF_TARGET_ARCH_RISCV
|
||||||
|
@ -34,6 +34,14 @@ CFLAGS += -Wno-enum-compare
|
|||||||
# those are false positives.
|
# those are false positives.
|
||||||
CFLAGS += -Wno-cast-align
|
CFLAGS += -Wno-cast-align
|
||||||
|
|
||||||
|
# TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
|
||||||
|
CFLAGS += -Wno-attributes
|
||||||
|
CFLAGS += -Wno-enum-conversion
|
||||||
|
CFLAGS += -Wno-error=format=
|
||||||
|
CFLAGS += -Wno-format
|
||||||
|
CFLAGS += -Wno-use-after-free
|
||||||
|
CFLAGS += -Wno-incompatible-pointer-types
|
||||||
|
|
||||||
# additional CFLAGS required for RISC-V architecture
|
# additional CFLAGS required for RISC-V architecture
|
||||||
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
||||||
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include
|
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include
|
||||||
|
@ -30,6 +30,10 @@ include ../esp_idf.mk
|
|||||||
# those are false positives.
|
# those are false positives.
|
||||||
CFLAGS += -Wno-cast-align
|
CFLAGS += -Wno-cast-align
|
||||||
|
|
||||||
|
# TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
|
||||||
|
CFLAGS += -Wno-error=format=
|
||||||
|
CFLAGS += -Wno-format
|
||||||
|
|
||||||
# additional CFLAGS required for RISC-V architecture
|
# additional CFLAGS required for RISC-V architecture
|
||||||
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
|
||||||
CFLAGS += -Wno-error=format=
|
CFLAGS += -Wno-error=format=
|
||||||
|
Loading…
Reference in New Issue
Block a user