https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104134
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The file uses #if __GNUC__ >= 10 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wformat-diag" #endif ... #if __GNUC__ >= 10 # pragma GCC diagnostic pop #endif but in a region different from what is reported about.