diff options
author | Richard Henderson | 2018-05-12 06:59:40 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2018-05-23 16:02:02 +0200 |
commit | ebf2a499a5c43d5eaee2b70ab5ae655af49d935c (patch) | |
tree | 7d4f488a0fad0de4063da1df0d6f71ab7cb96962 /include/hw/net/mii.h | |
parent | libvhost-user: Send messages with no data (diff) | |
download | qemu-ebf2a499a5c43d5eaee2b70ab5ae655af49d935c.tar.gz qemu-ebf2a499a5c43d5eaee2b70ab5ae655af49d935c.tar.xz qemu-ebf2a499a5c43d5eaee2b70ab5ae655af49d935c.zip |
hw/virtio: Fix brace Werror with clang 6.0.0
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 ISO C89, both GCC and Clang support plain empty set of braces
as an extension.
Cc: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/net/mii.h')
0 files changed, 0 insertions, 0 deletions