This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] debuginfod: Fix implicit conversion from 'CURLcode' to 'CURLMcode'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]