https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116969
--- Comment #3 from Thomas Schwinge <tschwinge at gcc dot gnu.org> --- (In reply to Jonathan Wakely from comment #1) > I don't think so. Libstdc++ is using dirty tricks [...] In that case, let me suggest adding a source code comment, to make it clear that the '#pragma GCC diagnostic ignored "-Wformat"' isn't just papering over something that ought to be fixed properly?