[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-trivial] [Qemu-devel] [PATCH for-2.10] util/oslib-posix.c: Avo
From: |
Peter Maydell |
Subject: |
Re: [Qemu-trivial] [Qemu-devel] [PATCH for-2.10] util/oslib-posix.c: Avoid warning on NetBSD |
Date: |
Thu, 20 Jul 2017 21:53:43 +0100 |
On 20 July 2017 at 19:26, Eric Blake <address@hidden> wrote:
> On 07/20/2017 11:32 AM, Peter Maydell wrote:
>> On NetBSD the compiler warns:
>> util/oslib-posix.c: In function 'sigaction_invoke':
>> util/oslib-posix.c:589:5: warning: missing braces around initializer
>> [-Wmissing-braces]
>> siginfo_t si = { 0 };
>> ^
>
> Uggh. That is a broken compiler. C99 declares that 'anything = {0}' is
> supposed to be a valid way to zero-initialize anything.
Looks like maybe it was https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53119
thanks
-- PMM