summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-10-15 22:57:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-10-15 22:57:27 +0200
commit2f1e417cea79cbde46af1a376c2805c5fd629503 (patch)
tree9452bf9a199ffeb8445ac15821a050b7508c22f0
parent3862c37b6373a55ca704171d45ba5ee91dec2c9f (diff)
downloadcurl-bagder/curl-disable-libcurl.tar.gz
tool_operate: fix compiler warning when --libcurl is disabledbagder/curl-disable-libcurl
-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;