summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2023-03-13 08:52:39 +0100
committerMarcel Raad <Marcel.Raad@teamviewer.com>2023-03-13 13:43:26 +0100
commitff5c3455ce5c444c5b61dcd830f2ce99096c7144 (patch)
tree15915c8f3dbe2e2c8c7a987235f95b98f45a6d68 /src
parentdb073c9d88b982dd89a73aac3a34b282b8a545fa (diff)
downloadcurl-ff5c3455ce5c444c5b61dcd830f2ce99096c7144.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 4e2b82114..712d966db 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);
}