From: Andy Green Date: Fri, 9 Jun 2017 13:46:26 +0000 (+0800) Subject: LWS_WITH_NO_LOGS: take care about unused array for log generation X-Git-Tag: upstream/2.3.0~84 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af718ff5c2fafa7157bd6e50ae9b7f8e6823ff8f;p=platform%2Fupstream%2Flibwebsockets.git LWS_WITH_NO_LOGS: take care about unused array for log generation --- diff --git a/lib/context.c b/lib/context.c index 9bf54657..f71f01da 100644 --- a/lib/context.c +++ b/lib/context.c @@ -40,6 +40,7 @@ lws_get_library_version(void) return library_version; } +#if !defined(LWS_WITH_NO_LOGS) static const char * const mount_protocols[] = { "http://", "https://", @@ -49,6 +50,7 @@ static const char * const mount_protocols[] = { ">https://", "callback://" }; +#endif LWS_VISIBLE void * lws_protocol_vh_priv_zalloc(struct lws_vhost *vhost, const struct lws_protocols *prot,