Re: [Spice-devel] [spice-server] stat: Silence gcc warning

2017-01-23 Thread Uri Lublin
On 01/23/2017 12:39 PM, Frediano Ziglio wrote: On 01/20/2017 05:30 PM, Christophe Fergeau wrote: Initializing 'node' to NULL silences this warning: stat-file.c: In function 'stat_file_add_node': stat-file.c:180:15: error: 'node' may be used uninitialized in this function [-Werror=maybe-uniniti

Re: [Spice-devel] [spice-server] stat: Silence gcc warning

2017-01-23 Thread Christophe Fergeau
On Mon, Jan 23, 2017 at 05:39:25AM -0500, Frediano Ziglio wrote: > > > > On 01/20/2017 05:30 PM, Christophe Fergeau wrote: > > > Initializing 'node' to NULL silences this warning: > > > > > > stat-file.c: In function 'stat_file_add_node': > > > stat-file.c:180:15: error: 'node' may be used uniniti

Re: [Spice-devel] [spice-server] stat: Silence gcc warning

2017-01-23 Thread Frediano Ziglio
> > On 01/20/2017 05:30 PM, Christophe Fergeau wrote: > > Initializing 'node' to NULL silences this warning: > > > > stat-file.c: In function 'stat_file_add_node': > > stat-file.c:180:15: error: 'node' may be used uninitialized in this > > function [-Werror=maybe-uninitialized] > > g_strlcpy(

Re: [Spice-devel] [spice-server] stat: Silence gcc warning

2017-01-22 Thread Uri Lublin
On 01/20/2017 05:30 PM, Christophe Fergeau wrote: Initializing 'node' to NULL silences this warning: stat-file.c: In function 'stat_file_add_node': stat-file.c:180:15: error: 'node' may be used uninitialized in this function [-Werror=maybe-uninitialized] g_strlcpy(node->name, name, sizeof(

[Spice-devel] [spice-server] stat: Silence gcc warning

2017-01-20 Thread Christophe Fergeau
Initializing 'node' to NULL silences this warning: stat-file.c: In function 'stat_file_add_node': stat-file.c:180:15: error: 'node' may be used uninitialized in this function [-Werror=maybe-uninitialized] g_strlcpy(node->name, name, sizeof(node->name)); ^~~~ cc1: all warnings