From de8bb9ade7904469ac0f262f2f3e5c3046f240a2 Mon Sep 17 00:00:00 2001 From: Olivier Langlois Date: Sun, 1 Dec 2019 17:48:05 +0000 Subject: [PATCH] pmd: create_context: warn if info.extensions non-NULL if built without EXTENSIONS --- lib/core/context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/context.c b/lib/core/context.c index 583e91482..81a192670 100644 --- a/lib/core/context.c +++ b/lib/core/context.c @@ -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 */