qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] c0f896: virtio: Fix wrong type cast from poin


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] c0f896: virtio: Fix wrong type cast from pointer to long
Date: Wed, 24 Sep 2014 06:00:06 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: c0f896810b6ec0117f69a5b1b8747aed93b76521
      
https://github.com/qemu/qemu/commit/c0f896810b6ec0117f69a5b1b8747aed93b76521
  Author: Stefan Weil <address@hidden>
  Date:   2014-09-24 (Wed, 24 Sep 2014)

  Changed paths:
    M include/hw/virtio/virtio_ring.h

  Log Message:
  -----------
  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 <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
Reviewed-by: Fam Zheng <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Message-id: address@hidden
Signed-off-by: Peter Maydell <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]