From 31b1029234f8fe03ad83dd2453821a4d5be93e42 Mon Sep 17 00:00:00 2001
From: Andy Green <andy@warmcat.com>
Date: Fri, 9 Jun 2017 21:48:03 +0800
Subject: [PATCH] LWS_WITH_NO_LOGS: take care about unused array for log
 generation

---
 lib/context.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/context.c b/lib/context.c
index 1958a099..131fb082 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,
-- 
GitLab