diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2005-06-18 15:07:28 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2005-06-18 15:07:28 +0000 |
commit | eb2de0c09d794650494cdca09b5613fbf374fb86 (patch) | |
tree | 66a8d3455877c4ffc86ef5c9f01e5b1e382b51f9 /gcc/c-decl.c | |
parent | 2c8b10961fa33abb06d8acebffa4ac3eaec82086 (diff) | |
download | gcc-eb2de0c09d794650494cdca09b5613fbf374fb86.zip gcc-eb2de0c09d794650494cdca09b5613fbf374fb86.tar.gz gcc-eb2de0c09d794650494cdca09b5613fbf374fb86.tar.bz2 |
c-decl.c (locate_old_decl): Add format attribute.
* c-decl.c (locate_old_decl): Add format attribute.
(implicit_decl_warning): Likewise.
cp:
* call.c (convert_like_real): Add format attribute.
* typeck.c (check_for_casting_away_constness,
build_static_cast_1): Likewise.
* typeck2.c (readonly_error, cxx_incomplete_type_diagnostic):
Likewise.
From-SVN: r101158
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 27d03eb..8f50b17 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -1126,7 +1126,7 @@ validate_proto_after_old_defn (tree newdecl, tree newtype, tree oldtype) first in a pair of mismatched declarations, using the diagnostic function DIAG. */ static void -locate_old_decl (tree decl, void (*diag)(const char *, ...)) +locate_old_decl (tree decl, void (*diag)(const char *, ...) ATTRIBUTE_GCC_CDIAG(1,2)) { if (TREE_CODE (decl) == FUNCTION_DECL && DECL_BUILT_IN (decl)) ; @@ -2283,7 +2283,7 @@ pushdecl_top_level (tree x) static void implicit_decl_warning (tree id, tree olddecl) { - void (*diag) (const char *, ...); + void (*diag) (const char *, ...) ATTRIBUTE_GCC_CDIAG(1,2); switch (mesg_implicit_function_declaration) { case 0: return; |