Remove context from lws_context_per_thread for non-libuv builds
The variable is never read when built without libuv.
This commit is contained in:
parent
5162d876fd
commit
fa9ebb394f
2 changed files with 4 additions and 0 deletions
|
@ -650,7 +650,9 @@ lws_create_context(struct lws_context_creation_info *info)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
#ifdef LWS_USE_LIBUV
|
||||
context->pt[n].context = context;
|
||||
#endif
|
||||
context->pt[n].tid = n;
|
||||
context->pt[n].http_header_data = lws_malloc(context->max_http_header_data *
|
||||
context->max_http_header_pool);
|
||||
|
|
|
@ -660,7 +660,9 @@ struct lws_context_per_thread {
|
|||
struct lws *rx_draining_ext_list;
|
||||
struct lws *tx_draining_ext_list;
|
||||
struct lws *timeout_list;
|
||||
#ifdef LWS_USE_LIBUV
|
||||
struct lws_context *context;
|
||||
#endif
|
||||
#ifdef LWS_WITH_CGI
|
||||
struct lws_cgi *cgi_list;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue