Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 11 Oct 2016 11:22:37 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: Using macro CMSG_NXTHDR generates warnings with CLANG

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

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.