[Spice-devel] [PATCH v2] tests: Fix -Werror=format-zero-length build failure

Jonathon Jongsma jjongsma at redhat.com
Tue Sep 29 09:20:42 PDT 2015


ACK


On Tue, 2015-09-29 at 18:02 +0200, Christophe Fergeau wrote:
> replay.c: In function 'replay_channel_event':
> replay.c:226:16: error: zero-length gnu_printf format string
> [-Werror=format-zero-length]
>      g_printerr("");
> ---
>  server/tests/replay.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/server/tests/replay.c b/server/tests/replay.c
> index efa97e9..a17037c 100644
> --- a/server/tests/replay.c
> +++ b/server/tests/replay.c
> @@ -223,8 +223,6 @@ static QXLInterface display_sif = {
>  
>  static void replay_channel_event(int event, SpiceChannelEventInfo *info)
>  {
> -    g_printerr("");
> -
>      if (info->type == SPICE_CHANNEL_DISPLAY &&
>          event == SPICE_CHANNEL_EVENT_INITIALIZED) {
>          started = TRUE;




More information about the Spice-devel mailing list