From c5ff3fb2cd12e64212560366f923412ce0b89fde Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 15 Oct 2020 22:57:27 +0200 Subject: [PATCH] tool_operate: fix compiler warning when --libcurl is disabled Closes #6095 --- src/tool_operate.c | 3 +++ 1 file changed, 3 insertions(+) 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;