qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH for 2.6] configure: Allow builds -Weverything
@ 2016-04-28 21:33 Stefan Weil
  2016-04-29  8:29 ` Daniel P. Berrange
  2016-04-29  8:51 ` Peter Maydell
  0 siblings, 2 replies; 8+ messages in thread
From: Stefan Weil @ 2016-04-28 21:33 UTC (permalink / raw)
  To: QEMU Developer; +Cc: Peter Maydell, Daniel P. Berrange, Stefan Weil

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 <sw@weilnetz.de>
---

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) {
 }
 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"\
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-05-16 13:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 21:33 [Qemu-devel] [PATCH for 2.6] configure: Allow builds -Weverything Stefan Weil
2016-04-29  8:29 ` Daniel P. Berrange
2016-04-29  8:51 ` Peter Maydell
2016-04-29  9:22   ` Stefan Weil
2016-05-16 11:27   ` Stefan Weil
2016-05-16 12:22     ` Paolo Bonzini
2016-05-16 12:32       ` Stefan Weil
2016-05-16 13:06         ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).