11.1-RELEASE has issue with system headers in pedantic mode (type nullability specifier)

David Chisnall theraven at FreeBSD.org
Mon Aug 7 15:23:57 UTC 2017


On 7 Aug 2017, at 16:20, Maxim Sobolev <sobomax at FreeBSD.org> wrote:
> 
> One way to defeat this would be to mark those headers with the #pragma
> clang system_header. As per:
> 
> https://clang.llvm.org/docs/UsersManual.html#id27

That won’t fix the issue, because base (as you can see from the passed compile command) is compiled with -Wsystem-headers, which issues warnings even in system headers.  This is increasingly unhelpful and must, for example, be turned off when compiling anything written in C++ because of warnings in libc++ headers.

David



More information about the freebsd-toolchain mailing list