diff --git a/platformio.ini b/platformio.ini index 5e40e0c9..0dbcefc5 100644 --- a/platformio.ini +++ b/platformio.ini @@ -226,17 +226,17 @@ build_flags = -DESP8266 -DFP_IN_IROM ;-Wno-deprecated-declarations - ;-Wno-register + ;-Wno-register ;; leaves some warnings when compiling C files: command-line option '-Wno-register' is valid for C++/ObjC++ but not for C ;-Wno-misleading-indentation -; NONOSDK22x_190703 = 2.2.2-dev(38a443e) + ; NONOSDK22x_190703 = 2.2.2-dev(38a443e) -DPIO_FRAMEWORK_ARDUINO_ESPRESSIF_SDK22x_190703 -; lwIP 2 - Higher Bandwidth no Features -; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH -; lwIP 1.4 - Higher Bandwidth (Aircoookie has) - -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH -; VTABLES in Flash + ; lwIP 2 - Higher Bandwidth no Features + ; -DPIO_FRAMEWORK_ARDUINO_LWIP2_HIGHER_BANDWIDTH_LOW_FLASH + ; lwIP 1.4 - Higher Bandwidth (Aircoookie has) + -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH + ; VTABLES in Flash -DVTABLES_IN_FLASH -; restrict to minimal mime-types + ; restrict to minimal mime-types -DMIMETYPE_MINIMAL lib_deps = @@ -915,6 +915,7 @@ platform_packages = ${esp32.platformV4_packages} build_unflags = ${common.build_unflags} build_flags = ${common.build_flags} ${esp32.build_flagsV4} ${common_mm.build_flags_S} -Wno-misleading-indentation -Wno-format-truncation + -Wshadow=compatible-local ;; emit warning in case a local variable "shadows" another local one -D WLED_ENABLE_DMX_INPUT lib_deps = ${esp32.lib_depsV4} ${common_mm.lib_deps_S} board_build.partitions = ${esp32.default_partitions} diff --git a/wled00/wled.cpp b/wled00/wled.cpp index bcc2b05f..c95e4c4f 100644 --- a/wled00/wled.cpp +++ b/wled00/wled.cpp @@ -958,10 +958,10 @@ void WLED::initInterfaces() #endif #endif } else { - IPAddress ipAddress = Network.localIP(); - netDebugPrintIP[0] = ipAddress[0]; - netDebugPrintIP[1] = ipAddress[1]; - netDebugPrintIP[2] = ipAddress[2]; + IPAddress ndIpAddress = Network.localIP(); + netDebugPrintIP[0] = ndIpAddress[0]; + netDebugPrintIP[1] = ndIpAddress[1]; + netDebugPrintIP[2] = ndIpAddress[2]; } } if (netDebugPrintPort == 0)