]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
http: fix `-Wunused-parameter` with no auth and no proxy
authorViktor Szakats <commit@vsz.me>
Thu, 16 Nov 2023 12:39:01 +0000 (12:39 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 17 Nov 2023 11:26:40 +0000 (11:26 +0000)
```
lib/http.c:734:26: warning: unused parameter 'proxy' [-Wunused-parameter]
                    bool proxy)
                         ^
```

Reviewed-by: Marcel Raad
Closes #12338

lib/http.c

index c886e14dc7c6b786929c8452b73c0c6543b7aeca..8d8aaa88feb7a194b32673756bb9ac85a765bf63 100644 (file)
@@ -836,6 +836,7 @@ output_auth_headers(struct Curl_easy *data,
           (data->state.aptr.user ?
            data->state.aptr.user : ""));
 #else
+    (void)proxy;
     infof(data, "Server auth using %s with user '%s'",
           auth, data->state.aptr.user ?
           data->state.aptr.user : "");