This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: [PATCH] debuginfod: Fix implicit conversion from 'CURLcode' to 'CURLMcode'
- From: Mark Wielaard <mark at klomp dot org>
- To: elfutils-devel at sourceware dot org
- Date: Mon, 09 Dec 2019 20:45:49 +0100
- Subject: Re: [PATCH] debuginfod: Fix implicit conversion from 'CURLcode' to 'CURLMcode'
- References: <20191204014350.16397-1-mark@klomp.org>
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