Am 09.10.2025 um 16:08 hat Richard W.M. Jones geschrieben: > curl_easy_setopt takes a variable argument that depends on what > CURLOPT you are setting. Some require a long constant. Passing a > plain int constant is potentially wrong on some platforms. > > With warnings enabled, multiple warnings like this were printed: > > ../block/curl.c: In function ‘curl_init_state’: > ../block/curl.c:474:13: warning: call to ‘_curl_easy_setopt_err_long’ > declared with attribute warning: curl_easy_setopt expects a long argument > [-Wattribute-warning] > 474 | curl_easy_setopt(state->curl, CURLOPT_AUTOREFERER, 1) || > | ^ > > Signed-off-by: Richard W.M. Jones <[email protected]> > Signed-off-by: Chenxi Mao <[email protected]> > Reviewed-by: Daniel P. Berrangé <[email protected]>
CURLOPT_VERBOSE takes a long, too. It's hidden behind an #ifdef DEBUG_VERBOSE, so we won't see it in normal builds, but would be nice to fix it, too. Kevin
