]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: fix compiler warning when --libcurl is disabled
authorDaniel Stenberg <daniel@haxx.se>
Thu, 15 Oct 2020 20:57:27 +0000 (22:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 16 Oct 2020 06:13:42 +0000 (08:13 +0200)
Closes #6095

src/tool_operate.c

index e3fec0b4a003703efe5d41ad4b3bb278bdb62225..021b23adec1e1ccd2edba13328749777c19a4161 100644 (file)
@@ -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;