Re: [PATCH spice] Avoid a 'missing braces around initializer' warning.

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

 



On 01/13/2017 04:48 AM, Frediano Ziglio wrote:
>>
>> Signed-off-by: Jeremy White <jwhite@xxxxxxxxxxxxxxx>
>> ---
>>  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 8ec65d6..1f3ebb1 100644
>> --- a/server/tests/replay.c
>> +++ b/server/tests/replay.c
>> @@ -44,7 +44,7 @@ static SpiceServer *server;
>>  static SpiceReplay *replay;
>>  static QXLWorker *qxl_worker = NULL;
>>  static gboolean started = FALSE;
>> -static QXLInstance display_sin = { 0, };
>> +static QXLInstance display_sin = { { 0 }, 0, NULL };
>>  static gint slow = 0;
>>  static gint skip = 0;
>>  static gboolean print_count = FALSE;
> 
> Works.
> 
> Why you have this warning turned on?
> Which environment were you using?

This is in Debian stable; I haven't customized anything in particular
afacit:
  gcc (Debian 4.9.2-10) 4.9.2

Cheers,

Jeremy
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]