https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111219
--- Comment #2 from Nick Desaulniers <ndesaulniers at google dot com> --- Ah ok that makes sense. Would it be possible to get that behavior documented on this page? https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wformat-truncation We can probably modify clang to match this behavior then. It's good to know that this was intentional, but too bad that Martin did the work to change this, but the kernel commit still disabled the diagnostic. Martin's GCC patch is dated: Date: Tue Nov 29 21:08:02 2016 Linus' kernel patch is dated: Date: Wed Jul 12 19:25:47 2017 -0700 (So this was changed in GCC BEFORE the kernel commit; perhaps Linus was using an older release at the time. Or perhaps there was something else Linus was witnessing).