[Pkg-libvirt-commits] [libguestfs] 136/384: aarch64: builder: Silence gcc warnings from flex-generated code.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 16:56:18 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 91b5863a7d4d0001d864b46045e6e2958ee159d4
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Dec 23 06:27:18 2014 -0500

    aarch64: builder: Silence gcc warnings from flex-generated code.
---
 builder/index-scan.l | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/builder/index-scan.l b/builder/index-scan.l
index eddaa83..6526b55 100644
--- a/builder/index-scan.l
+++ b/builder/index-scan.l
@@ -25,10 +25,13 @@
 #include <stdlib.h>
 #include <string.h>
 
-/* Silence gcc moans about unused macros. */
+/* Silence gcc warnings from the generated code. */
 #if defined(__GNUC__)
 #pragma GCC diagnostic push
+/* flex creates macros that it doesn't use */
 #pragma GCC diagnostic ignored "-Wunused-macros"
+/* on aarch64, flex doesn't know that char is unsigned */
+#pragma GCC diagnostic ignored "-Wsign-compare"
 #endif
 
 #include "index-struct.h"

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