qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Daniel P. Berrange" <berrange@redhat.com>
To: Stefan Weil <sw@weilnetz.de>
Cc: QEMU Developer <qemu-devel@nongnu.org>,
	Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH for 2.6] configure: Allow builds -Weverything
Date: Fri, 29 Apr 2016 09:29:33 +0100	[thread overview]
Message-ID: <20160429082933.GB21525@redhat.com> (raw)
In-Reply-To: <1461879221-13338-1-git-send-email-sw@weilnetz.de>

On Thu, Apr 28, 2016 at 11:33:41PM +0200, Stefan Weil wrote:
> 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"\

Reviewed-by: Daniel P. Berrange <berrange@redhat.com>


I've confirmed that this sizeof test still works as intended when the
-Werror is removed. IIRC, the -Werror usage was left over from an
earlier version of the patch

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

  reply	other threads:[~2016-04-29  8:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160429082933.GB21525@redhat.com \
    --to=berrange@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).