Skip to content

Commit

Permalink
clean: var unused when no logs
Browse files Browse the repository at this point in the history
  • Loading branch information
orgads authored and lws-team committed Nov 2, 2024
1 parent 3da6939 commit 8263a68
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/roles/http/server/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,11 @@ _lws_vhost_init_server_af(struct vh_sock_args *a)
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
Expand Down

0 comments on commit 8263a68

Please sign in to comment.