diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-10-15 22:57:27 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-10-16 08:13:42 +0200 |
commit | c5ff3fb2cd12e64212560366f923412ce0b89fde (patch) | |
tree | 7dbac571139efb9af66373d627834bffca6db972 /src | |
parent | 475c1aba68030bc21b8d0ed76a7028eb2e797f64 (diff) | |
download | curl-c5ff3fb2cd12e64212560366f923412ce0b89fde.tar.gz |
tool_operate: fix compiler warning when --libcurl is disabled
Closes #6095
Diffstat (limited to 'src')
-rw-r--r-- | src/tool_operate.c | 3 |
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; |