tool_operate: fix build with --libcurl support disabled

A compiler warning for unused argument.

Reported-by: Marcel Raad

Closes #16684
This commit is contained in:
Daniel Stenberg 2025-03-12 11:35:35 +01:00
parent 0ec72c1ef8
commit fdd97148e8
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View 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: