OSDN Git Service

* c-common.c (check_missing_format_attribute): New.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jul 2005 21:38:02 +0000 (21:38 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 24 Jul 2005 21:38:02 +0000 (21:38 +0000)
commitbe7350e7f5aea02c9ac1b75dc1a61dfb98d8ee84
tree082c7830d8aa5ffdf45a79a0fea424679a91db14
parentc4be82cc5f5f64e6436eb23a082630bd73507b49
* c-common.c (check_missing_format_attribute): New.
* c-common.h (check_missing_format_attribute): Likewise.
* c-typeck.c (convert_for_assignment): Use it.

cp:
* call.c (convert_for_arg_passing): Check function pointers when
-Wmissing-format-attribute is activated.
* typeck.c (convert_for_assignment): Likewise.

testsuite:
* g++.dg/warn/miss-format-1.C, g++.dg/warn/miss-format-2.C,
g++.dg/warn/miss-format-3.C, g++.dg/warn/miss-format-4.C,
g++.dg/warn/miss-format-5.C, g++.dg/warn/miss-format-6.C: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102338 138bc75d-0d04-0410-961f-82ee72b054a4
14 files changed:
gcc/ChangeLog
gcc/c-common.c
gcc/c-common.h
gcc/c-typeck.c
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/miss-format-1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/miss-format-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/miss-format-3.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/miss-format-4.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/miss-format-5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/warn/miss-format-6.C [new file with mode: 0644]