On Wed, 2019-12-04 at 02:43 +0100, Mark Wielaard wrote: > GCC10 warns when converting the value of one enum type into another: > > debuginfod-client.c:530:24: error: implicit conversion from ‘CURLcode’ > to ‘CURLMcode’ [-Werror=enum-conversion] > 530 | curl_res = curl_easy_getinfo(target_handle, > | ^ > > libcurl has different error code enums. The "easy" interfaces return > a CURLcode error. The "multi" interface functions return a CURLMcode.
GCC10 is not out yet for a couple of months, but getting the error code types correct seems like a good idea anyway. Pushed to master. Cheers, Mark