aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2005-07-24 21:38:02 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2005-07-24 21:38:02 +0000
commit104f8784d2e90e6f6da405a8071a59ede65b411a (patch)
tree082c7830d8aa5ffdf45a79a0fea424679a91db14 /gcc/c-common.h
parent1b8452d093bd8c1642cda1c3369b9f3d7009fe6f (diff)
downloadgcc-104f8784d2e90e6f6da405a8071a59ede65b411a.zip
gcc-104f8784d2e90e6f6da405a8071a59ede65b411a.tar.gz
gcc-104f8784d2e90e6f6da405a8071a59ede65b411a.tar.bz2
c-common.c (check_missing_format_attribute): New.
* 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. From-SVN: r102338
Diffstat (limited to 'gcc/c-common.h')
-rw-r--r--gcc/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-common.h b/gcc/c-common.h
index 76a9650..4e8485a 100644
--- a/gcc/c-common.h
+++ b/gcc/c-common.h
@@ -925,6 +925,7 @@ extern void init_pp_output (FILE *);
extern void preprocess_file (cpp_reader *);
extern void pp_file_change (const struct line_map *);
extern void pp_dir_change (cpp_reader *, const char *);
+extern bool check_missing_format_attribute (tree, tree);
/* In order for the format checking to accept the C frontend
diagnostic framework extensions, you must include this file before