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:
parent
f84f30fe17
commit
33a4a61cfb
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue