https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96063
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |11.0 Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- That's not the case. You'll only see those warnings with -Wsystem-headers enabled, which is off by default. So they *are* disabled from the start. Fixed in r11-1853-0e5abeb0cb06f9798a559e1238839c5d6581657e