https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64955
--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> --- For what is worth, Clang is already doing this: prog.cc:5:19: warning: format specifies type 'int' but the argument has type 'long long' [-Wformat] printf ("%i\n", ll); ~~ ^~ %lli (In reply to David Malcolm from comment #0) > (Bonus points: have GCC generate a patch to fix it ;) ) Clang fix-it hints can automatically fix code: http://clang.llvm.org/extra/clang-tidy/ I guess generating a patch should not be big deal to them.