Date: Tue, 11 Oct 2016 18:17:48 +0300 (MSK) From: Alexander Monakov <amonakov@...ras.ru> To: musl@...ts.openwall.com Subject: Re: Using macro CMSG_NXTHDR generates warnings with CLANG 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
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.