]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c-family/c-common.c
PR c/22476
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jul 2005 12:09:49 +0000 (12:09 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 19 Jul 2005 12:09:49 +0000 (12:09 +0000)
commit95c90e04ee6d5268b0897fbbbf56d5757c035838
treedca43bd0a0db3df3cbcc88768c895067aa836aba
parent9bf217119bd804a84f8bde2298a35d776f36147f
PR c/22476
* c-common.c (check_function_arguments): Call
'check_function_format' if either -Wformat or
-Wmissing-format-attribute are specified.
* c-format.c (check_function_format): Check -Wformat before
calling 'check_format_info'.
* c-opts.c (c_common_post_options): Don't warn for
-Wmissing-format-attribute without -Wformat.
* c-typeck.c (convert_for_assignment): Detect additional cases for
-Wmissing-format-attribute.
* doc/invoke.texi (-Wmissing-format-attribute): Document new
behavior.

testsuite:
* gcc.dg/format/miss-1.c, gcc.dg/format/miss-2.c: Don't
specify -Wformat for these tests.
* gcc.dg/format/miss-3.c, gcc.dg/format/miss-4.c,
gcc.dg/format/miss-5.c, gcc.dg/format/miss-6.c: New.
* gcc.dg/format/opt-6.c: Delete.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102155 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-format.c
gcc/c-opts.c
gcc/c-typeck.c
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/format/miss-1.c
gcc/testsuite/gcc.dg/format/miss-2.c
gcc/testsuite/gcc.dg/format/miss-3.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/miss-4.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/miss-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/miss-6.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/format/opt-6.c [deleted file]