aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.h
diff options
context:
space:
mode:
authorKaveh Ghazi <ghazi@caip.rutgers.edu>2005-07-23 15:22:46 +0000
committerKaveh Ghazi <ghazi@caip.rutgers.edu>2005-07-23 15:22:46 +0000
commit44fbb5099cbc4843ebf8d436219f88473d89060b (patch)
tree81ca62862625867a1d20bc850ee48d820dd6126d /gcc/diagnostic.h
parent7b861bd97cc10fac926635bc4e03942f18f8e15f (diff)
* 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: https://gcc.gnu.org/svn/gcc/trunk@102309 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.h')
-rw-r--r--gcc/diagnostic.h4
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. */