Browse Source

Fix unused variable warnings when USE_WEBSOCKET is not defined

Kevin Wojniak 10 years ago
parent
commit
8fa39c5503
1 changed files with 12 additions and 0 deletions
  1. 12 0
      src/civetweb.c

+ 12 - 0
src/civetweb.c

@@ -7443,6 +7443,18 @@ struct mg_connection *mg_connect_websocket_client(const char *host, int port, in
         conn = NULL;
         DEBUG_TRACE("%s", "Websocket client connect thread could not be started\r\n");
     }
+#else
+    // Appease "unused parameter" warnings
+    (void)host;
+    (void)port;
+    (void)use_ssl;
+    (void)error_buffer;
+    (void)error_buffer_size;
+    (void)path;
+    (void)origin;
+    (void)user_data;
+    (void)data_func;
+    (void)close_func;
 #endif
 
     return conn;