From: Markus Wichmann <nullplan@gmx.net>
To: musl@lists.openwall.com
Subject: Re: [Patch] reduced warnings reported by clang
Date: Tue, 9 Jan 2018 18:01:49 +0100 [thread overview]
Message-ID: <20180109170149.p53whn624pzkac7m@voyager> (raw)
In-Reply-To: <CAKb-6jvgsojU1c1P2oSP5uJN1Fwdy-4b3joDDXNYXdbcTN5CyQ@mail.gmail.com>
On Tue, Jan 09, 2018 at 04:48:02PM +0000, Patrick Cheng wrote:
> Hello,
>
> Not sure if it's the version of clang that I was using, or the warning
> level/toggle on the project that I was compiling, but Musl headers were
> causing a number of warnings.
>
> Added extra parenthesis, so it's more explicit the precedence of | vs &
>
> Added 'const' to the typecasting. Clang didn't like const casting.
>
Didn't we have this topic already? If clang reports warnings from system
headers, it is broken. Either because it is not told those headers are
from the system (did you use -I instead of -isystem?) or because clang
is broken fundamentally. The latter appears to be unlikely, but I've
seen horses puke before.
Ciao,
Markus
next prev parent reply other threads:[~2018-01-09 17:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-09 16:48 Patrick Cheng
2018-01-09 17:01 ` Markus Wichmann [this message]
2018-01-09 17:07 ` Rich Felker
2018-01-09 17:49 ` Patrick Cheng
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=20180109170149.p53whn624pzkac7m@voyager \
--to=nullplan@gmx.net \
--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).