https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71176
--- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- (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.