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

Christophe Fergeau cfergeau at redhat.com
Tue Sep 29 09:01:52 PDT 2015


On Tue, Sep 29, 2015 at 10:05:33AM -0500, Jonathon Jongsma wrote:
> On Tue, 2015-09-29 at 16:31 +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, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/server/tests/replay.c b/server/tests/replay.c
> > index efa97e9..c1a53b1 100644
> > --- a/server/tests/replay.c
> > +++ b/server/tests/replay.c
> > @@ -223,7 +223,7 @@ static QXLInterface display_sif = {
> >  
> >  static void replay_channel_event(int event, SpiceChannelEventInfo *info)
> >  {
> > -    g_printerr("");
> > +    g_printerr("channel event");
> 
> hmm, this code is a bit strange. Do you know why we're using
> g_printerr() here instead of g_print() or similar?


No idea no, I guess I'll just drop it.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20150929/9349878c/attachment-0001.sig>


More information about the Spice-devel mailing list