This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r240013 - in /trunk/gcc: c-family/ChangeLog c-f...
- From: msebor at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 06 Sep 2016 19:23:26 -0000
- Subject: r240013 - in /trunk/gcc: c-family/ChangeLog c-f...
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