Subject: LWS_UNUSED
authorSergey Kovalevich <inndie@gmail.com>
Tue, 13 Jun 2017 13:55:07 +0000 (16:55 +0300)
committerAndy Green <andy@warmcat.com>
Mon, 19 Jun 2017 02:57:39 +0000 (10:57 +0800)
lib/context.c
test-server/fuzxy.c
test-server/test-server-http.c

index fab3dc2..d9d94eb 100644 (file)
@@ -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);
index d301c30..c6a0f0d 100644 (file)
@@ -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);
 
index ea852c2..90daaf2 100644 (file)
@@ -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);