PR c/77336 - -Wsuggest-attribute=format warning overly simplistic
authorMartin Sebor <msebor@redhat.com>
Tue, 6 Sep 2016 19:23:25 +0000 (19:23 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Tue, 6 Sep 2016 19:23:25 +0000 (13:23 -0600)
commita42e7952b0af76c0c16d341d25eaad7f044b5dc4
treeae5a9b8a7617d4b1169e24175cd87edde40ae3ba
parente6cb85d435baf64ba081e4e9c6a3387680fc1772
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.

From-SVN: r240013
gcc/c-family/ChangeLog
gcc/c-family/c-format.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/miss-7.c [new file with mode: 0644]