summary refs log tree commit diff stats
path: root/scripts/qapi.py
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-09-24 07:20:02 +0200
committerPeter Maydell <peter.maydell@linaro.org>2014-09-24 12:51:38 +0100
commitc0f896810b6ec0117f69a5b1b8747aed93b76521 (patch)
treea96ec7a5f10531c7dee51590c82cea5b53524fe9 /scripts/qapi.py
parentca976d1803a16e8f9d4a657634823a8c5b9d661a (diff)
downloadfocaccia-qemu-c0f896810b6ec0117f69a5b1b8747aed93b76521.tar.gz
focaccia-qemu-c0f896810b6ec0117f69a5b1b8747aed93b76521.zip
virtio: Fix wrong type cast from pointer to long
Compiler warning (w32, w64):

include/hw/virtio/virtio_ring.h:142:26: warning:
 cast from pointer to integer of different size [-Wpointer-to-int-cast]

When sizeof(long) < sizeof(void *), this is not only a warning but a
real program error.

Add also missing blanks in the same statement.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1411536002-14088-1-git-send-email-sw@weilnetz.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'scripts/qapi.py')
0 files changed, 0 insertions, 0 deletions