qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] build: disable -Wmissing-braces on older compil


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH] build: disable -Wmissing-braces on older compilers
Date: Fri, 20 Oct 2017 11:48:14 +0100

On 20 October 2017 at 11:12, Paolo Bonzini <address@hidden> wrote:
> GCC 4.9 and newer stopped warning for missing braces around the
> "universal" C zero initializer {0}.  One such initializer sneaked
> into scsi/qemu-pr-helper.c and is breaking the build with such
> older GCC versions.
>
> Detect the lack of support for the idiom, and disable the warning
> in that case.
>
> Signed-off-by: Paolo Bonzini <address@hidden>

AFAIK "{}" will work and not be warned about anywhere (we
use it extensively already) so you don't need to fall back to
memset...

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]