Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit fd36085

Browse files
committed
Fix unused-variable warnings that are flagged as errors in some Arduino IDE setups
1 parent d4c9bcd commit fd36085

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/AsyncTCP.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ void _asynctcpsock_task(void *)
114114
struct timeval tv;
115115
tv.tv_sec = 0;
116116
tv.tv_usec = ASYNCTCPSOCK_POLL_INTERVAL * 1000;
117-
uint32_t t1 = millis();
118117

119118
xSemaphoreGiveRecursive(_asyncsock_mutex);
120119

@@ -301,7 +300,7 @@ AsyncClient::AsyncClient(int sockfd)
301300
{
302301
_write_mutex = xSemaphoreCreateMutex();
303302
if (sockfd != -1) {
304-
int r = fcntl( sockfd, F_SETFL, fcntl( sockfd, F_GETFL, 0 ) | O_NONBLOCK );
303+
fcntl( sockfd, F_SETFL, fcntl( sockfd, F_GETFL, 0 ) | O_NONBLOCK );
305304

306305
// Updating state visible to asyncTcpSock task
307306
xSemaphoreTakeRecursive(_asyncsock_mutex, (TickType_t)portMAX_DELAY);
@@ -1244,7 +1243,7 @@ void AsyncServer::begin()
12441243
log_e("listen error: %d - %s", errno, strerror(errno));
12451244
return;
12461245
}
1247-
int r = fcntl(sockfd, F_SETFL, O_NONBLOCK);
1246+
fcntl(sockfd, F_SETFL, O_NONBLOCK);
12481247

12491248
// Updating state visible to asyncTcpSock task
12501249
xSemaphoreTakeRecursive(_asyncsock_mutex, (TickType_t)portMAX_DELAY);

0 commit comments

Comments
 (0)