summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-15 22:57:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-16 08:13:42 +0200
commitc5ff3fb2cd12e64212560366f923412ce0b89fde (patch)
tree7dbac571139efb9af66373d627834bffca6db972 /src
parent475c1aba68030bc21b8d0ed76a7028eb2e797f64 (diff)
downloadcurl-c5ff3fb2cd12e64212560366f923412ce0b89fde.tar.gz
tool_operate: fix compiler warning when --libcurl is disabled
Closes #6095
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index e3fec0b4a..021b23ade 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -322,6 +322,9 @@ static CURLcode pre_transfer(struct GlobalConfig *global,
if(uploadfilesize != -1) {
struct OperationConfig *config = per->config; /* for the macro below */
+#ifdef CURL_DISABLE_LIBCURL_OPTION
+ (void)config;
+#endif
my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize);
}
per->input.fd = per->infd;