[Bug middle-end/77708] -Wformat-length %s warns for snprintf

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


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


More information about the Gcc-bugs mailing list