From: Alexander Monakov <amonakov@ispras.ru>
To: musl@lists.openwall.com
Subject: Re: Using macro CMSG_NXTHDR generates warnings with CLANG
Date: Tue, 11 Oct 2016 18:17:48 +0300 (MSK) [thread overview]
Message-ID: <alpine.LNX.2.20.13.1610111812420.5160@monopod.intra.ispras.ru> (raw)
In-Reply-To: <20161011150901.GG19318@brightrain.aerifal.cx>
On Tue, 11 Oct 2016, Rich Felker wrote:
> As these are system headers, the compiler should not be producing any
> warnings from them. If it does that's a compiler bug. Are you perhaps
> using an odd setup where musl's headers aren't in the default system
> include path but instead passed in via -I rather than -isystem? If you
> have a minimal test file I could see if the same warnings appear with
> clang on Alpine Linux.
As mentioned on IRC some time ago, Clang suppresses warnings in macros expanded
from definitions in system headers on a case-by-case basis, i.e. some warnings
are suppressed (if someone deliberately enabled suppression), some are not. As
seen here, -Wcast-align is among those warnings that are not suppressed.
Alexander
next prev parent reply other threads:[~2016-10-11 15:17 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-10 22:09 Jan Vorlicek
2016-10-11 14:45 ` Markus Wichmann
2016-10-11 15:09 ` Rich Felker
2016-10-11 15:17 ` Alexander Monakov [this message]
2016-10-11 15:22 ` Rich Felker
2016-10-11 15:25 ` Jan Vorlicek
2016-10-11 15:31 ` Szabolcs Nagy
2016-10-11 15:38 ` Jan Vorlicek
2016-10-11 16:43 ` Szabolcs Nagy
2016-10-11 16:46 ` Rich Felker
2018-03-06 17:16 ` Jacob Welsh
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=alpine.LNX.2.20.13.1610111812420.5160@monopod.intra.ispras.ru \
--to=amonakov@ispras.ru \
--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).