diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-23 15:22:46 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-07-23 15:22:46 +0000 |
commit | 58ec857b7be21f625043ba260af733c3a6eb8fec (patch) | |
tree | 81ca62862625867a1d20bc850ee48d820dd6126d /gcc/diagnostic.h | |
parent | 3f4ccd4448ec86e848260e321e2cc2b94fb9ee51 (diff) | |
download | gcc-58ec857b7be21f625043ba260af733c3a6eb8fec.tar.gz |
* Makefile.in (C_TREE_H): Update dependencies.
* c-tree.h: Include toplev.h.
* diagnostic.h (diagnostic_set_info): Add format attribute.
* rtl-error.c (diagnostic_for_asm): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102309 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r-- | gcc/diagnostic.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/diagnostic.h b/gcc/diagnostic.h index ec2df1251fc..e44d68028eb 100644 --- a/gcc/diagnostic.h +++ b/gcc/diagnostic.h @@ -181,8 +181,10 @@ extern void diagnostic_report_current_module (diagnostic_context *); extern void diagnostic_report_current_function (diagnostic_context *); extern void diagnostic_report_diagnostic (diagnostic_context *, diagnostic_info *); +#ifdef ATTRIBUTE_GCC_DIAG extern void diagnostic_set_info (diagnostic_info *, const char *, va_list *, - location_t, diagnostic_t); + location_t, diagnostic_t) ATTRIBUTE_GCC_DIAG(2,0); +#endif extern char *diagnostic_build_prefix (diagnostic_info *); /* Pure text formatting support functions. */ |