]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: silence unused parameter warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 13 Mar 2023 07:52:39 +0000 (08:52 +0100)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 13 Mar 2023 12:43:26 +0000 (13:43 +0100)
`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

index 4e2b82114c52491729db4a39c300a11d3556ff21..712d966db65be6cd244b9681f5cd9fee79d910c4 100644 (file)
@@ -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);
     }