From: Viktor Szakats Date: Thu, 16 Nov 2023 12:39:01 +0000 (+0000) Subject: http: fix `-Wunused-parameter` with no auth and no proxy X-Git-Tag: curl-8_5_0~87 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4c1ef6d7bf4b4fcb4a3de61f5ff4c13caa2e4ab6;p=thirdparty%2Fcurl.git http: fix `-Wunused-parameter` with no auth and no proxy ``` lib/http.c:734:26: warning: unused parameter 'proxy' [-Wunused-parameter] bool proxy) ^ ``` Reviewed-by: Marcel Raad Closes #12338 --- diff --git a/lib/http.c b/lib/http.c index c886e14dc7..8d8aaa88fe 100644 --- a/lib/http.c +++ b/lib/http.c @@ -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 : "");