Skip to content

Commit 97c07d0

Browse files
committed
fix unused parameter warnings
1 parent 3ec132e commit 97c07d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libraries/AsyncUDP/src/AsyncUDP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ static xQueueHandle _udp_queue;
127127
static volatile TaskHandle_t _udp_task_handle = NULL;
128128

129129
static void _udp_task(void *pvParameters){
130+
(void)pvParameters; // unused
130131
lwip_event_packet_t * e = NULL;
131132
for (;;) {
132133
if(xQueueReceive(_udp_queue, &e, portMAX_DELAY) == pdTRUE){
@@ -280,6 +281,7 @@ void AsyncUDPMessage::flush()
280281

281282
AsyncUDPPacket::AsyncUDPPacket(AsyncUDP *udp, pbuf *pb, const ip_addr_t *raddr, uint16_t rport, struct netif * ntif)
282283
{
284+
(void)rport; // unused
283285
_udp = udp;
284286
_pb = pb;
285287
_if = TCPIP_ADAPTER_IF_MAX;
@@ -675,6 +677,7 @@ size_t AsyncUDP::writeTo(const uint8_t * data, size_t len, const ip_addr_t * add
675677

676678
void AsyncUDP::_recv(udp_pcb *upcb, pbuf *pb, const ip_addr_t *addr, uint16_t port, struct netif * netif)
677679
{
680+
(void)upcb; // unused
678681
while(pb != NULL) {
679682
pbuf * this_pb = pb;
680683
pb = pb->next;

0 commit comments

Comments
 (0)