PR c/77336 - -Wsuggest-attribute=format warning overly simplistic
commitf9b3f70221cf456e1c970cf7b5653b66547206fe
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Sep 2016 19:23:25 +0000 (6 19:23 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Sep 2016 19:23:25 +0000 (6 19:23 +0000)
treeae5a9b8a7617d4b1169e24175cd87edde40ae3ba
parent888204143b5674146f41889046acffce7e7d9b8e
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240013 138bc75d-0d04-0410-961f-82ee72b054a4
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]