[Spice-devel] [PATCH spice-server 05/13] red-worker: Remove warning

Frediano Ziglio fziglio at redhat.com
Fri Jul 26 10:08:57 UTC 2019


ping

> 
> ping
> 
> > 
> > ping
> > 
> > > 
> > > ping
> > > 
> > > > 
> > > > ping
> > > > 
> > > > > 
> > > > > ping
> > > > > 
> > > > > > 
> > > > > > In some configuration _GNU_SOURCE is defined by the compiler
> > > > > > and defining again cause a warning.
> > > > > > Do not define again to avoid the warning.
> > > > > > 
> > > > > > Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> > > > > > ---
> > > > > >  server/red-worker.c | 2 ++
> > > > > >  1 file changed, 2 insertions(+)
> > > > > > 
> > > > > > diff --git a/server/red-worker.c b/server/red-worker.c
> > > > > > index d64c26e83..b3335a53a 100644
> > > > > > --- a/server/red-worker.c
> > > > > > +++ b/server/red-worker.c
> > > > > > @@ -17,7 +17,9 @@
> > > > > >  */
> > > > > >  #include <config.h>
> > > > > >  
> > > > > > +#ifndef _GNU_SOURCE
> > > > > >  #define _GNU_SOURCE
> > > > > > +#endif
> > > > > >  #include <stdio.h>
> > > > > >  #include <stdarg.h>
> > > > > >  #include <stdlib.h>


More information about the Spice-devel mailing list