mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
tool_operate: fix compiler warning when --libcurl is disabled
Closes #6095
This commit is contained in:
parent
475c1aba68
commit
c5ff3fb2cd
@ -322,6 +322,9 @@ static CURLcode pre_transfer(struct GlobalConfig *global,
|
|||||||
|
|
||||||
if(uploadfilesize != -1) {
|
if(uploadfilesize != -1) {
|
||||||
struct OperationConfig *config = per->config; /* for the macro below */
|
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);
|
my_setopt(per->curl, CURLOPT_INFILESIZE_LARGE, uploadfilesize);
|
||||||
}
|
}
|
||||||
per->input.fd = per->infd;
|
per->input.fd = per->infd;
|
||||||
|
Loading…
Reference in New Issue
Block a user