From be4efcfe587e6df0de8bf0bac0c65f98a21b0d84 Mon Sep 17 00:00:00 2001
From: Sergey Kovalevich <inndie@gmail.com>
Date: Tue, 13 Jun 2017 16:55:07 +0300
Subject: [PATCH] Subject: LWS_UNUSED

---
 lib/context.c                  | 3 +--
 test-server/fuzxy.c            | 1 +
 test-server/test-server-http.c | 2 ++
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/lib/context.c b/lib/context.c
index fab3dc27..d9d94ebf 100644
--- a/lib/context.c
+++ b/lib/context.c
@@ -40,7 +40,6 @@ lws_get_library_version(void)
 	return library_version;
 }
 
-#if !defined(LWS_WITH_NO_LOGS)
 static const char * const mount_protocols[] = {
 	"http://",
 	"https://",
@@ -50,7 +49,6 @@ 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,
@@ -533,6 +531,7 @@ lws_create_vhost(struct lws_context *context,
 
 	mounts = info->mounts;
 	while (mounts) {
+		(void)mount_protocols[0];
 		lwsl_notice("   mounting %s%s to %s\n",
 				mount_protocols[mounts->origin_protocol],
 				mounts->origin, mounts->mountpoint);
diff --git a/test-server/fuzxy.c b/test-server/fuzxy.c
index d301c309..c6a0f0db 100644
--- a/test-server/fuzxy.c
+++ b/test-server/fuzxy.c
@@ -842,6 +842,7 @@ main(int argc, char **argv)
 	construct_state(pfds, FZY_S_LISTENING, POLLIN | POLLERR);
 	pfds++;
 
+	(void)interface_name_local;
 	lwsl_notice("Local side listening on %s:%u\n",
 		    interface_name_local, port_local);
 
diff --git a/test-server/test-server-http.c b/test-server/test-server-http.c
index ea852c2a..90daaf21 100644
--- a/test-server/test-server-http.c
+++ b/test-server/test-server-http.c
@@ -141,6 +141,8 @@ file_upload_cb(void *data, const char *name, const char *filename,
 			(struct per_session_data__http *)data;
 	int n;
 
+	(void)n;
+
 	switch (state) {
 	case LWS_UFS_OPEN:
 		strncpy(pss->filename, filename, sizeof(pss->filename) - 1);
-- 
GitLab