1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

clean: var unused when no logs

This commit is contained in:
Orgad Shaneh 2024-10-27 11:39:51 +02:00 committed by Andy Green
parent a71a62f51b
commit c4b1e34a50

View file

@ -345,9 +345,11 @@ done_list:
if (setsockopt(wsi->desc.sockfd, IPPROTO_TCP,
TCP_FASTOPEN,
(const char*)&optval, sizeof(optval)) < 0) {
#if (_LWS_ENABLED_LOGS & LLL_WARN)
int error = LWS_ERRNO;
lwsl_warn("%s: TCP_NODELAY failed with error %d\n",
__func__, error);
#endif
}
}
#else