mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Re: [PATCH v2] When building, don't use compiler flags which cause warnings
Date: Tue, 26 May 2015 15:36:11 -0400	[thread overview]
Message-ID: <20150526193611.GH17573@brightrain.aerifal.cx> (raw)
In-Reply-To: <5564C197.6020404@gmail.com>

On Tue, May 26, 2015 at 08:55:19PM +0200, Alex Dowad wrote:
> 
> 
> On 26/05/15 20:47, Rich Felker wrote:
> >On Tue, May 26, 2015 at 08:36:45PM +0200, Alex Dowad wrote:
> >>This silences some warnings when building with clang.
> >>---
> >>Dear Rich Felker,
> >>
> >>This accomplishes the same thing as the previous patch by "promoting" all
> >>warnings to errors. Look better?
> >No, it has exactly the same problem -- it treats any spurious warnings
> >which the chosen $CC might produce as a failure of the test.
> OK, understood. It doesn't look like there is any way to treat
> ignored options as errors,
> unfortunately.

Which flags are giving the warnings? I see both clang and cparser have
a -Wunknown-warning-option which gives warnings for unknown warning
options. I believe it's on by default, and could be turned off, but
using -Werrror=unknown-warning-option seems like the best thing to do
(so they get rejected). I don't see a way to disable warnings for
other unrecognized options, though.

Rich


  reply	other threads:[~2015-05-26 19:36 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-26 17:51 [PATCH] When building, don't use flags which cause compiler warning Alex Dowad
2015-05-26 18:18 ` Rich Felker
2015-05-26 18:36   ` [PATCH v2] When building, don't use compiler flags which cause warnings Alex Dowad
2015-05-26 18:47     ` Rich Felker
2015-05-26 18:55       ` Alex Dowad
2015-05-26 19:36         ` Rich Felker [this message]
2015-05-26 19:57           ` Alex Dowad
2015-05-27  2:22             ` Shiz
2015-05-27  3:14               ` Rich Felker
2015-05-27 12:30                 ` Shiz

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=20150526193611.GH17573@brightrain.aerifal.cx \
    --to=dalias@libc.org \
    --cc=musl@lists.openwall.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).