https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77708
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Martin Sebor <msebor at gcc dot gnu.org> --- The following patch suppresses the warning for the test case (the warning is only issued when the return value is unused, or with -Wformat-truncation=2): https://gcc.gnu.org/ml/gcc-patches/2017-01/msg00140.html