diff options
author | Gabriel Dos Reis <gdr@integrable-solutions.net> | 2003-05-04 15:18:21 +0000 |
---|---|---|
committer | Gabriel Dos Reis <gdr@gcc.gnu.org> | 2003-05-04 15:18:21 +0000 |
commit | c71f2ffd78811e3aaafdca4618c737c0c10e72ca (patch) | |
tree | fa70aefa8923b17266df6b266a6bac64b2300e55 /gcc/diagnostic.c | |
parent | 3d8856836f073d33855a32357ae9d7041362d677 (diff) | |
download | gcc-c71f2ffd78811e3aaafdca4618c737c0c10e72ca.zip gcc-c71f2ffd78811e3aaafdca4618c737c0c10e72ca.tar.gz gcc-c71f2ffd78811e3aaafdca4618c737c0c10e72ca.tar.bz2 |
toplev.h (pedwarn_with_file_and_line): Don't declare.
* toplev.h (pedwarn_with_file_and_line): Don't declare.
* diagnostic.c (pedwarn_with_file_and_line): Remove.
From-SVN: r66456
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 5f3a6d0..58450b1 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -993,23 +993,6 @@ pedwarn_with_decl VPARAMS ((tree decl, const char *msgid, ...)) VA_CLOSE (ap); } -/* Same as above but within the context FILE and LINE. */ -void -pedwarn_with_file_and_line VPARAMS ((const char *file, int line, - const char *msgid, ...)) -{ - diagnostic_info diagnostic; - VA_OPEN (ap, msgid); - VA_FIXEDARG (ap, const char *, file); - VA_FIXEDARG (ap, int, line); - VA_FIXEDARG (ap, const char *, msgid); - - diagnostic_set_info (&diagnostic, _(msgid), &ap, file, line, - pedantic_error_kind ()); - report_diagnostic (&diagnostic); - VA_CLOSE (ap); -} - /* Just apologize with MSGID. */ void sorry VPARAMS ((const char *msgid, ...)) |