Explorar o código

Fix unused variable warnings when USE_WEBSOCKET is not defined

Kevin Wojniak %!s(int64=10) %!d(string=hai) anos
pai
achega
8fa39c5503
Modificáronse 1 ficheiros con 12 adicións e 0 borrados
  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;