arch/xtensa/esp32: Workaround -Wmaybe-uninitialized warning with "GCC 12.2"

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2023-03-20 16:24:17 +02:00 committed by Gustavo Henrique Nihei
parent f84f30fe17
commit 33a4a61cfb
1 changed files with 5 additions and 0 deletions

View File

@ -231,6 +231,11 @@ endif
ifeq ($(CONFIG_ESP32_WIFI),y)
CHIP_CSRCS += esp32_wlan.c esp32_wifi_utils.c esp32_wifi_adapter.c
EXTRA_LIBS += -lcore -lnet80211 -lpp -lsmartconfig -lespnow -lwpa_supplicant
GCCVER = $(shell $(CC) --version | grep gcc | sed -r 's/.* ([0-9]+\.[0-9]+).*/\1/')
ifeq ($(GCCVER),12.2)
chip/esp32_wifi_adapter.c_CFLAGS += -Wno-maybe-uninitialized
endif
endif
ifeq ($(CONFIG_ESP32_BLE),y)