https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108517
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > This looks related to PR 105705. Before gcc-12 the warning was already > present, but only when using -Wsystem-headers Sorry, meant to say the *second* warning was already present. The first one seems new in gcc-11.1.0 and is not affected by -Wsystem-headers before that.