From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10621 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using macro CMSG_NXTHDR generates warnings with CLANG Date: Tue, 11 Oct 2016 11:22:37 -0400 Message-ID: <20161011152237.GI19318@brightrain.aerifal.cx> References: <20161011150901.GG19318@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1476199395 22566 195.159.176.226 (11 Oct 2016 15:23:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 15:23:15 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10634-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 11 17:23:11 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1btytF-0002jS-MH for gllmg-musl@m.gmane.org; Tue, 11 Oct 2016 17:22:49 +0200 Original-Received: (qmail 21939 invoked by uid 550); 11 Oct 2016 15:22:50 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 21921 invoked from network); 11 Oct 2016 15:22:49 -0000 Content-Disposition: inline In-Reply-To: Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10621 Archived-At: On Tue, Oct 11, 2016 at 06:17:48PM +0300, Alexander Monakov wrote: > 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. Ah. I think this should just be considered a clang bug then... Rich