diff options
author | Joseph Myers <jsm28@cam.ac.uk> | 2000-11-13 13:23:37 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2000-11-13 13:23:37 +0000 |
commit | 88f3c47786f6b132951bd9865fb914418e210c0c (patch) | |
tree | 0a400ee05d3799c2e76082d8bdb4a1c4b8bce766 /gcc/diagnostic.c | |
parent | e6ddd086cee1714de3136f8d730c559ae3f84960 (diff) | |
download | gcc-88f3c47786f6b132951bd9865fb914418e210c0c.zip gcc-88f3c47786f6b132951bd9865fb914418e210c0c.tar.gz gcc-88f3c47786f6b132951bd9865fb914418e210c0c.tar.bz2 |
diagnostic.c (vbuild_message_string, [...]): Add ATTRIBUTE_PRINTF.
* diagnostic.c (vbuild_message_string, output_do_printf, vnotice):
Add ATTRIBUTE_PRINTF.
* tradcpp.c (v_message, warning, error, fatal, error_with_line):
Add ATTRIBUTE_PRINTF*.
java:
* parse.y (issue_warning_error_from_context): Add
ATTRIBUTE_PRINTF.
From-SVN: r37419
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index c2fe71a..26ffa02 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -69,15 +69,18 @@ static void output_to_stream PARAMS ((output_buffer *, FILE *)); static void output_format PARAMS ((output_buffer *)); static void output_indent PARAMS ((output_buffer *)); -static char *vbuild_message_string PARAMS ((const char *, va_list)); +static char *vbuild_message_string PARAMS ((const char *, va_list)) + ATTRIBUTE_PRINTF (1, 0); static char *build_message_string PARAMS ((const char *, ...)) ATTRIBUTE_PRINTF_1; -static void output_do_printf PARAMS ((output_buffer *, const char *)); +static void output_do_printf PARAMS ((output_buffer *, const char *)) + ATTRIBUTE_PRINTF (2, 0); static void format_with_decl PARAMS ((output_buffer *, tree)); static void file_and_line_for_asm PARAMS ((rtx, const char **, int *)); static void diagnostic_for_asm PARAMS ((rtx, const char *, va_list *, int)); static void diagnostic_for_decl PARAMS ((tree, const char *, va_list *, int)); -static void vnotice PARAMS ((FILE *, const char *, va_list)); +static void vnotice PARAMS ((FILE *, const char *, va_list)) + ATTRIBUTE_PRINTF (2, 0); static void set_real_maximum_length PARAMS ((output_buffer *)); static void output_unsigned_decimal PARAMS ((output_buffer *, unsigned int)); |