V4 target: enable warning for variable shadoing

* pio.ini: add "-Wshadow=compatible-local" for V4 targets
* pio.ini: fix alignment for 8266 build_flags
* fix one (harmless) case of shadowed vars in MM specific code
This commit is contained in:
Frank
2023-04-14 14:20:55 +02:00
parent db62153e34
commit 5f4dd53be4
2 changed files with 13 additions and 12 deletions

View File

@@ -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)