Skip to content

Commit a78841a

Browse files
authored
Fix warning in WifiUdp
1 parent 23fa1f8 commit a78841a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WiFi/src/WiFiUdp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ void WiFiUDP::stop(){
168168
for (netif* intf = netif_list; intf != nullptr; intf = intf->next) {
169169
mreq.ipv6mr_interface = intf->num + 1;
170170
if (intf->name[0] != 'l' || intf->name[1] != 'o') { // skip 'lo' local interface
171-
int ret = setsockopt(udp_server, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq));
171+
setsockopt(udp_server, IPPROTO_IPV6, IPV6_LEAVE_GROUP, &mreq, sizeof(mreq));
172172
}
173173
}
174174
} else

0 commit comments

Comments
 (0)