Skip to content

Commit

Permalink
Mark arguments as not used. Suppress clangtidy check, as method decla…
Browse files Browse the repository at this point in the history
…ration does not allow a better approach
  • Loading branch information
gabryelreyes committed Aug 20, 2024
1 parent d2a3ef5 commit 08eadbc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion lib/ArduinoNative/src/WiFiUdp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,20 +62,25 @@

uint8_t WiFiUDP::begin(uint16_t port)
{
UTIL_NOT_USED(port);
return 0;
}

void WiFiUDP::stop()
{
}

int WiFiUDP::beginPacket(IPAddress ip, uint16_t port)
int WiFiUDP::beginPacket(IPAddress ip, uint16_t port) // NOLINT(performance-unnecessary-value-param)
{
UTIL_NOT_USED(ip);
UTIL_NOT_USED(port);
return 0;
}

size_t WiFiUDP::write(const uint8_t* buffer, size_t length)
{
UTIL_NOT_USED(buffer);
UTIL_NOT_USED(length);
return 0U;
}

Expand Down Expand Up @@ -202,6 +207,8 @@ void WiFiUDP::println(int32_t value)

size_t WiFiUDP::readBytes(uint8_t* buffer, size_t length)
{
UTIL_NOT_USED(buffer);
UTIL_NOT_USED(length);
return 0;
}

Expand Down

0 comments on commit 08eadbc

Please sign in to comment.