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:
parent
a71a62f51b
commit
c4b1e34a50
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue