https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108554
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jan de Cuveland from comment #0) > This behavior does not show up in GCC 9, 10, and 11. It does if you use -Wsystem-headers -- the only thing that changed is that the compiler now ignores whether the location is in a system header for many of warnings with the most false positives.