[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH libguestfs] generator.ml: do not emit unused print_*_list functions



Jim Meyering wrote:

> I see the following warnings:
>
>   cmds.c:934:13: warning: 'print_int_bool_list' defined but not used
>   cmds.c:1093:13: warning: 'print_stat_list' defined but not used
>   cmds.c:1124:13: warning: 'print_statvfs_list' defined but not used
>   cmds.c:1171:13: warning: 'print_version_list' defined but not used
>
> This patch makes it so we don't emit the unused definitions:
...
> Subject: [PATCH libguestfs] generator.ml: do not emit unused print_*_list functions
...
> +  (* Emit a put_TYPE_list function definition only if that function is used. *)

Oops.  that should be print_TYPE_list.
I've just amended my local copy of that change.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]