This is an automated email from the ASF dual-hosted git repository. gustavonihei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 33a4a61cfbf6e2e7fb7c4e7b4ca60ab24120a10c Author: Petro Karashchenko <petro.karashche...@gmail.com> AuthorDate: Mon Mar 20 16:24:17 2023 +0200 arch/xtensa/esp32: Workaround -Wmaybe-uninitialized warning with "GCC 12.2" Signed-off-by: Petro Karashchenko <petro.karashche...@gmail.com> --- arch/xtensa/src/esp32/Make.defs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/xtensa/src/esp32/Make.defs b/arch/xtensa/src/esp32/Make.defs index 4d43b813ca..ebc3a52003 100644 --- a/arch/xtensa/src/esp32/Make.defs +++ b/arch/xtensa/src/esp32/Make.defs @@ -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)