mirror of
https://github.com/apache/nuttx.git
synced 2026-09-02 15:12:59 +00:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue