From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10620 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Monakov Newsgroups: gmane.linux.lib.musl.general Subject: Re: Using macro CMSG_NXTHDR generates warnings with CLANG Date: Tue, 11 Oct 2016 18:17:48 +0300 (MSK) Message-ID: 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 1476199137 2621 195.159.176.226 (11 Oct 2016 15:18:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Oct 2016 15:18:57 +0000 (UTC) User-Agent: Alpine 2.20.13 (LNX 116 2015-12-14) To: musl@lists.openwall.com Original-X-From: musl-return-10633-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 11 17:18:53 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 1btypM-0008AP-Ff for gllmg-musl@m.gmane.org; Tue, 11 Oct 2016 17:18:48 +0200 Original-Received: (qmail 18000 invoked by uid 550); 11 Oct 2016 15:18:49 -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 17982 invoked from network); 11 Oct 2016 15:18:48 -0000 In-Reply-To: <20161011150901.GG19318@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:10620 Archived-At: 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