diff options
author | Gabriel Dos Reis <gdr@codesourcery.com> | 2000-07-12 14:12:51 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2000-07-12 14:12:51 +0000 |
commit | b9161f44f010d95884a05be53d062f26fe3d4c7d (patch) | |
tree | a803361d4984ed31886800476d356e4948eac355 /gcc/diagnostic.c | |
parent | 61b0bcccdf88eaab20a53dd7d7c1e59ea718b65b (diff) | |
download | gcc-b9161f44f010d95884a05be53d062f26fe3d4c7d.zip gcc-b9161f44f010d95884a05be53d062f26fe3d4c7d.tar.gz gcc-b9161f44f010d95884a05be53d062f26fe3d4c7d.tar.bz2 |
c-typeck.c (pedwarn_c99): Move to
2000-07-12 Gabriel Dos Reis <gdr@codesourcery.com>
* 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
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 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; |