1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

surpress gcc warnings

This commit is contained in:
Harald Barth 2020-11-14 20:13:57 +01:00
parent 086c78f58f
commit edb12d69d6

View File

@ -137,6 +137,11 @@ wifiSerialState WifiInterface::setup(Stream & setupStream, const __FlashStringH
return wifiState; return wifiState;
} }
#ifdef DONT_TOUCH_WIFI_CONF
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#pragma GCC diagnostic ignored "-Wunused-parameter"
#endif
wifiSerialState WifiInterface::setup2(const __FlashStringHelper* SSid, const __FlashStringHelper* password, wifiSerialState WifiInterface::setup2(const __FlashStringHelper* SSid, const __FlashStringHelper* password,
const __FlashStringHelper* hostname, int port) { const __FlashStringHelper* hostname, int port) {
bool ipOK = false; bool ipOK = false;
@ -274,6 +279,9 @@ wifiSerialState WifiInterface::setup2(const __FlashStringHelper* SSid, const __F
return WIFI_CONNECTED; return WIFI_CONNECTED;
} }
#ifdef DONT_TOUCH_WIFI_CONF
#pragma GCC diagnostic pop
#endif
// This function is used to allow users to enter <+ commands> through the DCCEXParser // This function is used to allow users to enter <+ commands> through the DCCEXParser