]> git.proxmox.com Git - mirror_qemu.git/commitdiff
configure: Allow builds with extra warnings
authorStefan Weil <sw@weilnetz.de>
Thu, 28 Apr 2016 21:33:41 +0000 (23:33 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
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: qemu-stable@nongnu.org
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Message-Id: <1461879221-13338-1-git-send-email-sw@weilnetz.de>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
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"\