qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: John Snow <jsnow@redhat.com>
Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v4 2/4] configure: factor out supported flag check
Date: Wed, 25 Mar 2015 13:16:48 +0000	[thread overview]
Message-ID: <20150325131648.GH22940@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1427221186-28404-3-git-send-email-jsnow@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 671 bytes --]

On Tue, Mar 24, 2015 at 02:19:44PM -0400, John Snow wrote:
> +cc_has_warning_flag() {
> +    write_c_skeleton;
> +
>      # Use the positive sense of the flag when testing for -Wno-wombat
>      # support (gcc will happily accept the -Wno- form of unknown
>      # warning options).
> -    optflag="$(echo $flag | sed -e 's/^-Wno-/-W/')"
> -    if compile_prog "-Werror $optflag" "" ; then
> -	QEMU_CFLAGS="$QEMU_CFLAGS $flag"
> +    optflag="$(echo $1 | sed -e 's/^-Wno-/-W/')"
> +    compile_prog "-Werror $optflag" ""
> +}
> +
> +for flag in $gcc_flags; do
> +    if cc_has_warning_flag $flag --keep-tmpc; then

Please drop the unused --keep-tmpc option here.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-03-25 13:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-24 18:19 [Qemu-devel] [PATCH v4 0/4] configure: clang 3.5.0 build fixes John Snow
2015-03-24 18:19 ` [Qemu-devel] [PATCH v4 1/4] configure: handle clang -nopie argument warning John Snow
2015-03-24 18:19 ` [Qemu-devel] [PATCH v4 2/4] configure: factor out supported flag check John Snow
2015-03-25 13:16   ` Stefan Hajnoczi [this message]
2015-03-24 18:19 ` [Qemu-devel] [PATCH v4 3/4] configure: silence glib unknown attribute __alloc_size__ John Snow
2015-03-24 18:19 ` [Qemu-devel] [PATCH v4 4/4] configure: Add workaround for ccache and clang John Snow

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=20150325131648.GH22940@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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).