[Top][All Lists]

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

[Qemu-devel] [PATCH for 2.6] configure: Allow builds -Weverything

From: Stefan Weil
Subject: [Qemu-devel] [PATCH for 2.6] configure: Allow builds -Weverything
Date: Thu, 28 Apr 2016 23:33:41 +0200

The clang compiler supports a useful compiler option -Weverything.

As this option triggers warnings in glib header files, too, testing
glib with -Werror will always fail. A size mismatch is also detected
without -Werror, so simply remove it.

Signed-off-by: Stefan Weil <address@hidden>

With this patch, it is possible to build QEMU using this configuration:

./configure' --cc=clang-3.7 --cxx=clang++-3.7 --extra-cflags="-Weverything 
-DHAVE_FSXATTR" --disable-werror

(HAVE_FSXATTR avoids a fatal build error because of structure redefinition)

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index ab54f3c..abd0eff 100755
--- a/configure
+++ b/configure
@@ -2967,7 +2967,7 @@ int main(void) {
-if ! compile_prog "-Werror $CFLAGS" "$LIBS" ; then
+if ! compile_prog "$CFLAGS" "$LIBS" ; then
     error_exit "sizeof(size_t) doesn't match GLIB_SIZEOF_SIZE_T."\
                "You probably need to set PKG_CONFIG_LIBDIR"\
               "to point to the right pkg-config files for your"\

reply via email to

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