1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

minor cosmetics (dead code, -Wallextra) (#4274)

This commit is contained in:
david gauchard 2018-02-07 01:34:46 +01:00 committed by GitHub
parent 83f6d83db0
commit 64885fd5cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 10 deletions

View File

@ -474,7 +474,7 @@ int ESP8266WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResul
} }
if(err != 0) { if(err != 0) {
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, err); DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, (int)err);
} else { } else {
DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str()); DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str());
} }

View File

@ -197,15 +197,6 @@ wl_status_t ESP8266WiFiSTAClass::begin() {
return status(); return status();
} }
static void
swap(IPAddress &lhs, IPAddress &rhs)
{
IPAddress tmp = lhs;
lhs = rhs;
rhs = tmp;
}
/** /**
* Change IP configuration settings disabling the dhcp client * Change IP configuration settings disabling the dhcp client
* @param local_ip Static ip configuration * @param local_ip Static ip configuration