https://gcc.gnu.org/bugzilla/show_bug.cgi?id=53431
sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org --- Comment #32 from sandra at gcc dot gnu.org --- Here's another case which I think is the same bug, observed in GCC 7.2: #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wpedantic" #include_next <foo.h> #pragma GCC diagnostic pop does nothing to suppress the -Wpedantic warning about #include_next.