On 1/23/19 3:37 PM, Akim Demaille wrote:
> In Bison.
> 
> commit decda5a491a8e8900bea0f4346d8dfca191d4b90
> Author: Akim Demaille <[email protected]>
> Date:   Wed Jan 23 22:36:54 2019 +0100
> 
>     array-list: Pacify warnings about unused arguments (-Wunused-parameter)
>     
>     * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.

> +++ b/lib/gl_array_list.c
> @@ -514,6 +514,7 @@ gl_array_iterator_next (gl_list_iterator_t *iterator,
>  static void
>  gl_array_iterator_free (gl_list_iterator_t *iterator)
>  {
> +  (void) iterator;

Why not this:

-gl_array_iterator_free (gl_list_iterator_t *iterator)
+gl_array_iterator_free (gl_list_iterator_t *iterator _GL_UNUSED)

like we do elsewhere?

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to