Quellcode durchsuchen

tool_operate: fix compiler warning when --libcurl is disabled

Closes #6095
Daniel Stenberg vor 3 Jahren
Ursprung
Commit
c5ff3fb2cd
1 geänderte Dateien mit 3 neuen und 0 gelöschten Zeilen
  1. 3 0
      src/tool_operate.c

+ 3 - 0
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;