https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52952
--- Comment #27 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- (In reply to Manuel López-Ibáñez from comment #25) > * Cases like: > > 1: const str[] = "something %d"; > 2: printf(str); Note that clang is able to handle this: manuel@gcc10:~$ clang -Wformat format.c format.c:4:19: warning: more '%' conversions than data arguments [-Wformat] __builtin_printf(str); ^~~ format.c:3:33: note: format string is defined here const char str[] = "something %d"; ~^