Re: [Qemu-devel] [PATCH 1/2] hw/virtio: Fix brace Werror with clang 6.0.0

2018-05-15 Thread Eric Blake
On 05/11/2018 08:48 PM, Richard Henderson wrote: The warning is hw/virtio/vhost-user.c:1319:26: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] VhostUserMsg msg = { 0 }; ^ {} While the original

Re: [Qemu-devel] [PATCH 1/2] hw/virtio: Fix brace Werror with clang 6.0.0

2018-05-14 Thread Philippe Mathieu-Daudé
On 05/11/2018 10:48 PM, Richard Henderson wrote: > The warning is > > hw/virtio/vhost-user.c:1319:26: error: suggest braces > around initialization of subobject [-Werror,-Wmissing-braces] > VhostUserMsg msg = { 0 }; > ^ > {} > > While

[Qemu-devel] [PATCH 1/2] hw/virtio: Fix brace Werror with clang 6.0.0

2018-05-11 Thread Richard Henderson
The warning is hw/virtio/vhost-user.c:1319:26: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] VhostUserMsg msg = { 0 }; ^ {} While the original code is correct, and technically exactly correct as per

[Qemu-devel] [PATCH 1/2] hw/virtio: Fix brace Werror with clang 6.0.0

2018-05-11 Thread Richard Henderson
The warning is hw/virtio/vhost-user.c:1319:26: error: suggest braces around initialization of subobject [-Werror,-Wmissing-braces] VhostUserMsg msg = { 0 }; ^ {} While the original code is correct, and technically exactly correct as per