summaryrefslogtreecommitdiff
path: root/gcc/c-common.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-24 21:38:02 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2005-07-24 21:38:02 +0000
commitbe7350e7f5aea02c9ac1b75dc1a61dfb98d8ee84 (patch)
tree082c7830d8aa5ffdf45a79a0fea424679a91db14 /gcc/c-common.h
parentc4be82cc5f5f64e6436eb23a082630bd73507b49 (diff)
downloadgcc-be7350e7f5aea02c9ac1b75dc1a61dfb98d8ee84.tar.gz
* 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
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 76a96500360..4e8485a061a 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