Date: Mon, 7 Aug 2017 16:23:42 +0100 From: David Chisnall <theraven@FreeBSD.org> To: Maxim Sobolev <sobomax@FreeBSD.org> Cc: stable@freebsd.org, freebsd-toolchain@freebsd.org Subject: Re: 11.1-RELEASE has issue with system headers in pedantic mode (type nullability specifier) Message-ID: <64B5D885-9A86-427C-900E-D5FDD6D791BB@FreeBSD.org> In-Reply-To: <CAH7qZfugHcAJ4rSBZhOjBY63GrkZkdfh354USMnd4q=7AQaNkA@mail.gmail.com> References: <CAH7qZft7nnQ=wj9J5kFaJMug4W%2BfTQ4vhMO4o4NvrShgF4cwWw@mail.gmail.com> <CAH7qZfugHcAJ4rSBZhOjBY63GrkZkdfh354USMnd4q=7AQaNkA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 7 Aug 2017, at 16:20, Maxim Sobolev <sobomax@FreeBSD.org> wrote: >=20 > One way to defeat this would be to mark those headers with the #pragma > clang system_header. As per: >=20 > https://clang.llvm.org/docs/UsersManual.html#id27 That won=E2=80=99t 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64B5D885-9A86-427C-900E-D5FDD6D791BB>