https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96925
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |56456 Keywords| |diagnostic --- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> --- The warning for the strcpy is issued by the wrestrict pass which doesn't consider sprintf. -Wrestrict is implemented separately for sprintf but without the same bounds checking. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56456 [Bug 56456] [meta-bug] bogus/missing -Warray-bounds