[Bug c/77336] -Wsuggest-attribute=format warning overly simplistic
msebor at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 6 19:24:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77336
--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Sep 6 19:23:25 2016
New Revision: 240013
URL: https://gcc.gnu.org/viewcvs?rev=240013&root=gcc&view=rev
Log:
PR c/77336 - -Wsuggest-attribute=format warning overly simplistic
gcc/c-family/ChangeLog:
PR c/77336
* c-format.c (check_function_format): Avoid issuing warnings for
functions unless they call format functions with non-constant
format strings.
gcc/testsuite/ChangeLog:
PR c/77336
* gcc.dg/format/miss-7.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/format/miss-7.c
Modified:
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-format.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list