Skip to content

Commit fcd8e8e

Browse files
gschorchtkaspar030
authored andcommitted
cpu/esp32: disable warnings in ESP-IDF for gcc 12.2
(cherry picked from commit d8d9a9b)
1 parent 94e731a commit fcd8e8e

3 files changed

Lines changed: 16 additions & 0 deletions

File tree

cpu/esp32/bootloader/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ INCLUDES = \
164164
# CONFIG_ESPTOOLPY_FLASHFREQ_* and CONFIG_FLASHMODE_*
165165
CFLAGS = -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+
167171
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
168172
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include
169173
CFLAGS += -DCONFIG_IDF_TARGET_ARCH_RISCV

cpu/esp32/esp-idf/esp_idf_cflags.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,14 @@ CFLAGS += -Wno-enum-compare
3434
# those are false positives.
3535
CFLAGS += -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
3846
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
3947
INCLUDES += -I$(ESP32_SDK_DIR)/components/riscv/include

cpu/esp32/esp-idf/nvs_flash/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ include ../esp_idf.mk
3030
# those are false positives.
3131
CFLAGS += -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
3438
ifneq (,$(filter riscv32%,$(TARGET_ARCH)))
3539
CFLAGS += -Wno-error=format=

0 commit comments

Comments
 (0)