aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2016-04-28 23:33:41 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2016-05-23 16:53:43 +0200
commit5919e0328b7d6a08a661c3c747bae3e841d4e6f4 (patch)
tree819c1d68c4b7270798396f71d9498bb1435eb006 /configure
parent691a02e2ce0c413236a78dee6f2651c937b09fb0 (diff)
configure: Allow builds with extra warnings
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 293639cf6d..b5aab7257b 100755
--- 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"\