[Bug tree-optimization/78913] Probably misleading error reported by -Wformat-length

msebor at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Jan 4 00:21:00 GMT 2017


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


More information about the Gcc-bugs mailing list