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

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:05:28 UTC 2014


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

bengen pushed a commit to annotated tag debian/1%1.29.10-1
in repository libguestfs.

commit 99263616cafc29852be4d76909bb35e1f7770022
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).
---
 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 bd4e6c1..20cf00a 100644
--- a/src/inspect-apps.c
+++ b/src/inspect-apps.c
@@ -319,8 +319,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;
@@ -380,6 +378,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