mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
tls: clear unused warning on WITHOUT_SERVER
I’ve got an error when compiling libwebsockets on Mac with -DLWS_WITHOUT_SERVER=ON: libwebsockets/lib/tls/tls.c:98:22: error: unused variable 'cx' [-Werror,-Wunused-variable]
This commit is contained in:
parent
3c89fdb52e
commit
1d2df8a8fe
1 changed files with 1 additions and 1 deletions
|
@ -95,12 +95,12 @@ lws_tls_restrict_borrow(struct lws *wsi)
|
|||
static void
|
||||
_lws_tls_restrict_return(struct lws *wsi)
|
||||
{
|
||||
#if defined(LWS_WITH_SERVER)
|
||||
struct lws_context *cx = wsi->a.context;
|
||||
|
||||
assert(cx->simultaneous_ssl_handshake >= 0);
|
||||
assert(cx->simultaneous_ssl >= 0);
|
||||
|
||||
#if defined(LWS_WITH_SERVER)
|
||||
lws_gate_accepts(cx,
|
||||
(cx->simultaneous_ssl_restriction &&
|
||||
cx->simultaneous_ssl == cx->simultaneous_ssl_restriction) ||
|
||||
|
|
Loading…
Add table
Reference in a new issue