Skip to content

Commit 64885fd

Browse files
authored
minor cosmetics (dead code, -Wallextra) (#4274)
1 parent 83f6d83 commit 64885fd

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiGeneric.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ int ESP8266WiFiGenericClass::hostByName(const char* aHostname, IPAddress& aResul
474474
}
475475

476476
if(err != 0) {
477-
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, err);
477+
DEBUG_WIFI_GENERIC("[hostByName] Host: %s lookup error: %d!\n", aHostname, (int)err);
478478
} else {
479479
DEBUG_WIFI_GENERIC("[hostByName] Host: %s IP: %s\n", aHostname, aResult.toString().c_str());
480480
}

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

-9
Original file line numberDiff line numberDiff line change
@@ -197,15 +197,6 @@ wl_status_t ESP8266WiFiSTAClass::begin() {
197197
return status();
198198
}
199199

200-
static void
201-
swap(IPAddress &lhs, IPAddress &rhs)
202-
{
203-
IPAddress tmp = lhs;
204-
lhs = rhs;
205-
rhs = tmp;
206-
}
207-
208-
209200
/**
210201
* Change IP configuration settings disabling the dhcp client
211202
* @param local_ip Static ip configuration

0 commit comments

Comments
 (0)