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 3da6939728
commit 8263a6814e

View file

@ -375,9 +375,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