]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: fix build with --libcurl support disabled
authorDaniel Stenberg <daniel@haxx.se>
Wed, 12 Mar 2025 10:35:35 +0000 (11:35 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 12 Mar 2025 12:12:23 +0000 (13:12 +0100)
A compiler warning for unused argument.

Reported-by: Marcel Raad
Closes #16684

src/tool_operate.c

index d8eebd117398868675f8d97769c1107e9a397765..5af47ca120856baea6e1a91f5795b1edc427750c 100644 (file)
@@ -342,6 +342,9 @@ static CURLcode pre_transfer(struct GlobalConfig *global,
   curl_off_t uploadfilesize = -1;
   struct_stat fileinfo;
   CURLcode result = CURLE_OK;
+#ifdef CURL_DISABLE_LIBCURL_OPTION
+  (void)global; /* otherwise used in the my_setopt macros */
+#endif
 
   if(per->uploadfile && !stdin_upload(per->uploadfile)) {
     /* VMS Note: