From: Daniel Stenberg Date: Thu, 15 Oct 2020 20:57:27 +0000 (+0200) Subject: tool_operate: fix compiler warning when --libcurl is disabled X-Git-Tag: curl-7_74_0~156 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c5ff3fb2cd12e64212560366f923412ce0b89fde;p=thirdparty%2Fcurl.git tool_operate: fix compiler warning when --libcurl is disabled Closes #6095 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index e3fec0b4a0..021b23adec 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;