[Pkg-libvirt-commits] [libguestfs] 324/384: arm: Ignore -Wpointer-to-int-cast in c-pointer API.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:58:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit e51420c61f1374cecc0bd2bb651525d45fd55749
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Mar 5 12:18:23 2015 +0000

    arm: Ignore -Wpointer-to-int-cast in c-pointer API.
    
    This API converts the C guestfs_h pointer to a 64 bit integer,
    which should always be possible on reasonable architectures.
    Therefore silence a GCC warning (which only occurs on 32 bit ARM).
---
 src/handle.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/handle.c b/src/handle.c
index af796e7..51b9572 100644
--- a/src/handle.c
+++ b/src/handle.c
@@ -395,7 +395,10 @@ guestfs_close (guestfs_h *g)
 int64_t
 guestfs_impl_c_pointer (guestfs_h *g)
 {
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wpointer-to-int-cast"
   return (int64_t) g;
+#pragma GCC diagnostic pop
 }
 
 int

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list