File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ INCLUDES = \
164164# CONFIG_ESPTOOLPY_FLASHFREQ_* and CONFIG_FLASHMODE_*
165165CFLAGS = -include '$(RIOTBUILD_CONFIG_HEADER_C ) ' \
166166
167+ # TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
168+ CFLAGS += -Wno-error=format=
169+ CFLAGS += -Wno-format
170+
167171ifneq (,$(filter riscv32% ,$(TARGET_ARCH ) ) )
168172 INCLUDES += -I$(ESP32_SDK_DIR ) /components/riscv/include
169173 CFLAGS += -DCONFIG_IDF_TARGET_ARCH_RISCV
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ CFLAGS += -Wno-enum-compare
3434# those are false positives.
3535CFLAGS += -Wno-cast-align
3636
37+ # TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
38+ CFLAGS += -Wno-attributes
39+ CFLAGS += -Wno-enum-conversion
40+ CFLAGS += -Wno-error=format=
41+ CFLAGS += -Wno-format
42+ CFLAGS += -Wno-use-after-free
43+ CFLAGS += -Wno-incompatible-pointer-types
44+
3745# additional CFLAGS required for RISC-V architecture
3846ifneq (,$(filter riscv32% ,$(TARGET_ARCH ) ) )
3947 INCLUDES += -I$(ESP32_SDK_DIR ) /components/riscv/include
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ include ../esp_idf.mk
3030# those are false positives.
3131CFLAGS += -Wno-cast-align
3232
33+ # TODO: required to be able to compile with GCC 12.1, remove them after upgrade to ESP-IDF 5.1
34+ CFLAGS += -Wno-error=format=
35+ CFLAGS += -Wno-format
36+
3337# additional CFLAGS required for RISC-V architecture
3438ifneq (,$(filter riscv32% ,$(TARGET_ARCH ) ) )
3539 CFLAGS += -Wno-error=format=
You can’t perform that action at this time.
0 commit comments