https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71176
--- Comment #4 from Eric Gallager <egallager at gcc dot gnu.org> --- (In reply to David Binderman from comment #2) > (In reply to Manuel López-Ibáñez from comment #1) > > I wonder why GCC -Wformat does not catch this, since "static const char" > > literals contents should be visible as formatting strings. In this case, it > > doesn't even make sense to use a separate variable. > > There is a much simpler explanation for this. > > The compiler only sees code that gets through the preprocessor. > > The code in question has > > #ifdef DO_STATS > > around it. > > Still worth fixing, in my view. 2e9 bytes isn't a lot of source code these > days. Where is DO_STATS supposed to be defined?