From: Marcel Raad Date: Mon, 13 Mar 2023 07:52:39 +0000 (+0100) Subject: tool_operate: silence unused parameter warning X-Git-Tag: curl-8_0_0~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff5c3455ce5c444c5b61dcd830f2ce99096c7144;p=thirdparty%2Fcurl.git tool_operate: silence unused parameter warning `global` is only used in the `my_setopt` macro version without `CURL_DISABLE_LIBCURL_OPTION` since commit 4774decf10a. Closes https://github.com/curl/curl/pull/10752 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 4e2b82114c..712d966db6 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -323,6 +323,7 @@ static CURLcode pre_transfer(struct GlobalConfig *global, struct OperationConfig *config = per->config; /* for the macro below */ #ifdef CURL_DISABLE_LIBCURL_OPTION (void)config; + (void)global; #endif my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize); }