[Spice-devel] [PATCH spice-server 05/13] red-worker: Remove warning
Victor Toso
victortoso at redhat.com
Fri Aug 2 09:42:56 UTC 2019
Hi,
On Thu, May 30, 2019 at 03:22:46PM +0100, Frediano Ziglio wrote:
> In some configuration _GNU_SOURCE is defined by the compiler
> and defining again cause a warning.
> Do not define again to avoid the warning.
Not a problem with the patch but we is it the case we should fix
some troubling configurations too?
For the patch,
Acked-by: Victor Toso <victortoso at redhat.com>
>
> 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>
> --
> 2.20.1
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20190802/1bfa17a0/attachment.sig>
More information about the Spice-devel
mailing list