]> Git Repo - qemu.git/commitdiff
configure: Allow builds with extra warnings
authorStefan Weil <[email protected]>
Thu, 28 Apr 2016 21:33:41 +0000 (23:33 +0200)
committerPaolo Bonzini <[email protected]>
Mon, 23 May 2016 14:53:43 +0000 (16:53 +0200)
The clang compiler supports a useful compiler option -Weverything,
and GCC also has other warnings not enabled by -Wall.

If glib header files trigger a warning, however, testing glib with
-Werror will always fail. A size mismatch is also detected without
-Werror, so simply remove it.

Cc: [email protected]
Signed-off-by: Stefan Weil <[email protected]>
Message-Id: <1461879221[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
configure

index 293639cf6d9c9d9460ae393dc52c2892cccfed9f..b5aab7257b338fd0d1ad0125d585494aaa0193ef 100755 (executable)
--- a/configure
+++ b/configure
@@ -2985,7 +2985,7 @@ int main(void) {
 }
 EOF
 
-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"\
This page took 0.032571 seconds and 4 git commands to generate.