--- ext/ovirtsdk4c/ov_http_client.c.orig 2023-06-24 11:23:37 UTC +++ ext/ovirtsdk4c/ov_http_client.c @@ -998,7 +998,7 @@ static void ov_http_client_prepare_handle(ov_http_clie /* Set the headers: */ if (!NIL_P(request_ptr->headers)) { - rb_hash_foreach(request_ptr->headers, ov_http_client_add_header, (VALUE) headers); + rb_hash_foreach(request_ptr->headers, (int (*)(VALUE, VALUE, VALUE)) ov_http_client_add_header, (VALUE) headers); } curl_easy_setopt(handle, CURLOPT_HTTPHEADER, *headers);