https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87806
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement --- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ulrich Windl from comment #0) > Is it due to the fact that many #include files define a lot of such (and > most of those are not used)? Yes. You'd get a warning from every header unless every file that includes the header uses *everything* in that header. It should not be necessary to add pragmas to every header to avoid warnings with -Wall, so this seems like a bad idea.