From: Daniel Stenberg Date: Wed, 12 Mar 2025 10:35:35 +0000 (+0100) Subject: tool_operate: fix build with --libcurl support disabled X-Git-Tag: curl-8_13_0~167 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fdd97148e86598c13ec0ebdc06e55101b357d866;p=thirdparty%2Fcurl.git tool_operate: fix build with --libcurl support disabled A compiler warning for unused argument. Reported-by: Marcel Raad Closes #16684 --- diff --git a/src/tool_operate.c b/src/tool_operate.c index d8eebd1173..5af47ca120 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -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: