From b9161f44f010d95884a05be53d062f26fe3d4c7d Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Wed, 12 Jul 2000 14:12:51 +0000 Subject: c-typeck.c (pedwarn_c99): Move to 2000-07-12 Gabriel Dos Reis * c-typeck.c (pedwarn_c99): Move to * c-errors.c: ... Here. * toplev.h (verror, vwarning, vpedwarn): Remove prototypes. * diagnostic.c (verror, vwarning, vpedwarn): Make static. * Makefile.in (C_AND_OBJC_OBJS): Include c-errors.o (c-errors.o): List dependency. From-SVN: r34984 --- gcc/diagnostic.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/diagnostic.c') diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 6e95e56..5a0c224 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -98,6 +98,9 @@ static void v_pedwarn_with_decl PARAMS ((tree, const char *, va_list)); static void v_pedwarn_with_file_and_line PARAMS ((const char *, int, const char *, va_list)); static void vsorry PARAMS ((const char *, va_list)); +static void verror PARAMS ((const char *, va_list)); +static void vwarning PARAMS ((const char *, va_list)); +static void vpedwarn PARAMS ((const char *, va_list)); static void report_file_and_line PARAMS ((const char *, int, int)); static void vnotice PARAMS ((FILE *, const char *, va_list)); static void set_real_maximum_length PARAMS ((output_buffer *)); @@ -1092,7 +1095,7 @@ v_error_for_asm (insn, msgid, ap) /* Report an error at the current line number. */ -void +static void verror (msgid, ap) const char *msgid; va_list ap; @@ -1180,7 +1183,7 @@ v_warning_for_asm (insn, msgid, ap) /* Report a warning at the current line number. */ -void +static void vwarning (msgid, ap) const char *msgid; va_list ap; @@ -1191,7 +1194,7 @@ vwarning (msgid, ap) /* These functions issue either warnings or errors depending on -pedantic-errors. */ -void +static void vpedwarn (msgid, ap) const char *msgid; va_list ap; -- cgit v1.1