Compiler warnings in macros coming from system headers


I wanted to ask if it’s expected behavior of Clang that it throws warnings from macros defined in system headers, or if it’s a bug. One of the points of system headers is to tell the compiler to ignore warnings, so I’m surprised it still throws some warnings from them. As a user I cannot act upon such warnings, and I don’t want to litter my code either with pragmas to inline-suppress them nor disable the warning entirely.

I have asked in cfe-dev here without success. I have also opened a bug.