Skip to content
Snippets Groups Projects
Commit be4efcfe authored by Sergey Kovalevich's avatar Sergey Kovalevich Committed by Andy Green
Browse files

Subject: LWS_UNUSED

parent 31e26a4f
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,6 @@ lws_get_library_version(void) ...@@ -40,7 +40,6 @@ lws_get_library_version(void)
return library_version; return library_version;
} }
#if !defined(LWS_WITH_NO_LOGS)
static const char * const mount_protocols[] = { static const char * const mount_protocols[] = {
"http://", "http://",
"https://", "https://",
...@@ -50,7 +49,6 @@ static const char * const mount_protocols[] = { ...@@ -50,7 +49,6 @@ static const char * const mount_protocols[] = {
">https://", ">https://",
"callback://" "callback://"
}; };
#endif
LWS_VISIBLE void * LWS_VISIBLE void *
lws_protocol_vh_priv_zalloc(struct lws_vhost *vhost, const struct lws_protocols *prot, 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, ...@@ -533,6 +531,7 @@ lws_create_vhost(struct lws_context *context,
mounts = info->mounts; mounts = info->mounts;
while (mounts) { while (mounts) {
(void)mount_protocols[0];
lwsl_notice(" mounting %s%s to %s\n", lwsl_notice(" mounting %s%s to %s\n",
mount_protocols[mounts->origin_protocol], mount_protocols[mounts->origin_protocol],
mounts->origin, mounts->mountpoint); mounts->origin, mounts->mountpoint);
......
...@@ -842,6 +842,7 @@ main(int argc, char **argv) ...@@ -842,6 +842,7 @@ main(int argc, char **argv)
construct_state(pfds, FZY_S_LISTENING, POLLIN | POLLERR); construct_state(pfds, FZY_S_LISTENING, POLLIN | POLLERR);
pfds++; pfds++;
(void)interface_name_local;
lwsl_notice("Local side listening on %s:%u\n", lwsl_notice("Local side listening on %s:%u\n",
interface_name_local, port_local); interface_name_local, port_local);
......
...@@ -141,6 +141,8 @@ file_upload_cb(void *data, const char *name, const char *filename, ...@@ -141,6 +141,8 @@ file_upload_cb(void *data, const char *name, const char *filename,
(struct per_session_data__http *)data; (struct per_session_data__http *)data;
int n; int n;
(void)n;
switch (state) { switch (state) {
case LWS_UFS_OPEN: case LWS_UFS_OPEN:
strncpy(pss->filename, filename, sizeof(pss->filename) - 1); strncpy(pss->filename, filename, sizeof(pss->filename) - 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment