aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-errors.c
diff options
context:
space:
mode:
authorGabriel Dos Reis <gdr@codesourcery.com>2000-07-18 08:40:32 +0000
committerGabriel Dos Reis <gdr@gcc.gnu.org>2000-07-18 08:40:32 +0000
commite81b4d6305ef9885149e87d374a909e8ff442edb (patch)
tree408c67b67b9b53588977593ecb6b22fdb4787f2d /gcc/c-errors.c
parent485c3e11a009cf2f7859e74fec35531435a4a867 (diff)
downloadgcc-e81b4d6305ef9885149e87d374a909e8ff442edb.zip
gcc-e81b4d6305ef9885149e87d374a909e8ff442edb.tar.gz
gcc-e81b4d6305ef9885149e87d374a909e8ff442edb.tar.bz2
diagnostic.h (report_diagnostic): Change prototype.
2000-07-17 Gabriel Dos Reis <gdr@codesourcery.com> * diagnostic.h (report_diagnostic): Change prototype. * diagnostic.c (output_do_verbatim, diagnostic_for_asm, diagnostic_for_decl): Change prototype. (error_with_decl, warning_with_decl, pedwarn_with_decl, warning, error, warning, error_with_file_and_line, warning_with_file_and_line, pedwarn_with_file_and_line, fatal): Adjust call to report_diagnostic, diagnostic_for_decl. (error_for_asm, warning_for_asm): Adjust call to diagnostic_for_asm. (output_verbatim, verbatim): Adjust call to output_do_verbatim. * c-errors.c (pedwarn_c99): Adjust call to report_diagnostic. End varaible argument list. From-SVN: r35116
Diffstat (limited to 'gcc/c-errors.c')
-rw-r--r--gcc/c-errors.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/c-errors.c b/gcc/c-errors.c
index a553d29..7c86be9 100644
--- a/gcc/c-errors.c
+++ b/gcc/c-errors.c
@@ -43,6 +43,7 @@ pedwarn_c99 VPARAMS ((const char *msgid, ...))
msgid = va_arg (ap, const char *);
#endif
- report_diagnostic (msgid, ap, input_filename, lineno,
+ report_diagnostic (msgid, &ap, input_filename, lineno,
!flag_isoc99 || !flag_pedantic_errors);
+ va_end (ap);
}