From ff5c3455ce5c444c5b61dcd830f2ce99096c7144 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Mon, 13 Mar 2023 08:52:39 +0100 Subject: [PATCH] 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 --- src/tool_operate.c | 1 + 1 file changed, 1 insertion(+) 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); }