Re: [Qemu-devel] bug with io/channel-socket.c - variable-sized object may not be initialized

2016-01-18 Thread Daniel P. Berrange
On Fri, Jan 15, 2016 at 04:56:33PM -0700, Eric Blake wrote: > On 01/13/2016 02:19 PM, Programmingkid wrote: > > This code causes an error to occur during compiling: > > > > char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; > > > > It is located at line 496 in io/channel-socket.c.

Re: [Qemu-devel] bug with io/channel-socket.c - variable-sized object may not be initialized

2016-01-16 Thread Programmingkid
On Jan 15, 2016, at 6:56 PM, Eric Blake wrote: > On 01/13/2016 02:19 PM, Programmingkid wrote: >> This code causes an error to occur during compiling: >> >> char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; >> >> It is located at line 496 in io/channel-socket.c. >> >> Here is

Re: [Qemu-devel] bug with io/channel-socket.c - variable-sized object may not be initialized

2016-01-15 Thread Eric Blake
On 01/13/2016 02:19 PM, Programmingkid wrote: > This code causes an error to occur during compiling: > > char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; > > It is located at line 496 in io/channel-socket.c. > > Here is the full error message: > io/channel-socket.c: In function

[Qemu-devel] bug with io/channel-socket.c - variable-sized object may not be initialized

2016-01-13 Thread Programmingkid
This code causes an error to occur during compiling: char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; It is located at line 496 in io/channel-socket.c. Here is the full error message: io/channel-socket.c: In function 'qio_channel_socket_writev': io/channel-socket.c:496:18: