[Pkg-libvirt-commits] [libguestfs] 30/146: src: inspect: move read_package within the -Wno-cast-align block

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:00:10 UTC 2015


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

bengen pushed a commit to branch master
in repository libguestfs.

commit 9509dab2c76e389f97de3b2fec3adb2f8e9f0a31
Author: Pino Toscano <ptoscano at redhat.com>
Date:   Fri Nov 21 16:10:33 2014 +0100

    src: inspect: move read_package within the -Wno-cast-align block
    
    Starting from commit e260460a8f608cb30093d7512b12f6ee11841456 be32toh is
    used, which means possible "unaligned cast" warnings (already covered in
    get_rpm_header_tag).
    
    (cherry picked from commit 99263616cafc29852be4d76909bb35e1f7770022)
---
 src/inspect-apps.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/inspect-apps.c b/src/inspect-apps.c
index 8d05b9c..836a160 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.c
@@ -313,8 +313,6 @@ get_rpm_header_tag (guestfs_h *g, const unsigned char *header_start,
   return NULL;
 }
 
-#pragma GCC diagnostic pop
-
 struct read_package_data {
   struct rpm_names_list *list;
   struct guestfs_application2_list *apps;
@@ -374,6 +372,8 @@ read_package (guestfs_h *g,
   return 0;
 }
 
+#pragma GCC diagnostic pop
+
 static struct guestfs_application2_list *
 list_applications_rpm (guestfs_h *g, struct inspect_fs *fs)
 {

-- 
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