https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78913
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot gnu.org --- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> --- The following patch has been posted for review. It doesn't remove the warning for the submitted test case but it does make it possible to avoid it either by using the return value of the function, or by compiling with -Wno-format-truncation. https://gcc.gnu.org/ml/gcc-patches/2017-01/msg00140.html