1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

pmd: create_context: warn if info.extensions non-NULL if built without EXTENSIONS

This commit is contained in:
Olivier Langlois 2019-12-01 17:48:05 +00:00 committed by Andy Green
parent bca993f7ed
commit de8bb9ade7

View file

@ -243,6 +243,10 @@ lws_create_context(const struct lws_context_creation_info *info)
context->detailed_latency_filepath = info->detailed_latency_filepath;
context->latencies_fd = -1;
#endif
#if defined(LWS_WITHOUT_EXTENSIONS)
if (info->extensions)
lwsl_warn("%s: LWS_WITHOUT_EXTENSIONS but extensions ptr set\n", __func__);
#endif
#endif
/* if he gave us names, set the uid / gid */