[libvirt] [PATCH] Fix build with older libcurl

Matthias Bolte matthias.bolte at googlemail.com
Wed Oct 8 07:45:09 UTC 2014


2014-10-08 9:15 GMT+02:00 Ján Tomko <jtomko at redhat.com>:
> Add ATTRIBUTE_UNUSED marker to the unused timeout_ms option
> in esxVI_MultiCURL_TimerCallback.
>
> Introduced by commit 125007d.
> ---
> Pushed under the build breaker rule.
>
>  src/esx/esx_vi.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c
> index fcd2e70..b00d8e7 100644
> --- a/src/esx/esx_vi.c
> +++ b/src/esx/esx_vi.c
> @@ -711,7 +711,8 @@ esxVI_MultiCURL_SocketCallback(CURL *handle ATTRIBUTE_UNUSED,
>
>  static int
>  esxVI_MultiCURL_TimerCallback(CURLM *handle ATTRIBUTE_UNUSED,
> -                              long timeout_ms, void *callback_opaque)
> +                              long timeout_ms ATTRIBUTE_UNUSED,
> +                              void *callback_opaque)
>  {
>      esxVI_MultiCURL *multi = callback_opaque;

Ah, I probably didn't do final test with libcurl < 7.28.0 yesterday.
Sorry and thanks for fixing this.

-- 
Matthias Bolte
http://photron.blogspot.com




More information about the libvir-list mailing list