Re: [Spice-devel] [PATCH v7 1/3] vdagentd: Quiet uninitialized variable warning.

2017-01-31 Thread Victor Toso
Hi, On Mon, Jan 30, 2017 at 01:05:39PM +0100, Christophe Fergeau wrote: > > Acked-by: Christophe Fergeau and pushed! > > On Fri, Jan 27, 2017 at 06:53:38PM +0100, Michal Suchanek wrote: > > With gcc 6.2.1 I cannot build vdagentd because gcc detects msg_type as > > potentially uninitialized an

Re: [Spice-devel] [PATCH v7 1/3] vdagentd: Quiet uninitialized variable warning.

2017-01-30 Thread Christophe Fergeau
Acked-by: Christophe Fergeau On Fri, Jan 27, 2017 at 06:53:38PM +0100, Michal Suchanek wrote: > With gcc 6.2.1 I cannot build vdagentd because gcc detects msg_type as > potentially uninitialized and vdagentd is built with -Werror. > > gcc 4.8.5 does not detect the issue and gcc 7 should be able

[Spice-devel] [PATCH v7 1/3] vdagentd: Quiet uninitialized variable warning.

2017-01-27 Thread Michal Suchanek
With gcc 6.2.1 I cannot build vdagentd because gcc detects msg_type as potentially uninitialized and vdagentd is built with -Werror. gcc 4.8.5 does not detect the issue and gcc 7 should be able to tell that do_client_file_xfer is called only with values of message_header->type handled in the switc