[cfe-dev] -pedantic warnings in system headers?

Joerg Sonnenberger via cfe-dev cfe-dev at lists.llvm.org
Thu Jul 13 09:15:33 PDT 2017


On Thu, Jul 13, 2017 at 06:07:37PM +0200, Stephan Bergmann via cfe-dev wrote:
> From a quick look at the code of both GCC and Clang, I assume the difference
> is due to GCC implicitly assuming /usr/include/assert.h to be a system
> header (so it suppresses the pedantic warning there), while Clang does not.

It should, but you can check that assumption easily by using -isystem
/usr/include.

Joerg



More information about the cfe-dev mailing list