diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 11:17:52 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-18 11:17:52 +0000 |
commit | cbe5f3b371c07c282d48d135cc5041092e1de28d (patch) | |
tree | 6e8f62722b8c096a18c7f96bbbf77c9c7fc8a01c /gcc/diagnostic.c | |
parent | 79a141784a7f10d72c756aa309eb6aa9a7bd92c5 (diff) | |
download | gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.zip gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.tar.gz gcc-cbe5f3b371c07c282d48d135cc5041092e1de28d.tar.bz2 |
diagnostics.c (permerror_at): Rename as permerror.
2008-08-18 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostics.c (permerror_at): Rename as permerror.
(permerror): Delete.
* toplev.h: Likewise.
cp/
* typeck.c: Update all callers.
* init.c: Likewise.
* class.c: Likewise.
* decl.c: Likewise.
* call.c: Likewise.
* except.c: Likewise.
* cvt.c: Likewise.
* typeck2.c: Likewise.
* pt.c: Likewise.
* semantics.c: Likewise.
* name-lookup.c: Likewise.
* lex.c: Likewise.
* decl2.c: Likewise.
* parser.c: Likewise.
From-SVN: r139193
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index 54c2da7..dfd3c9d 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -586,7 +586,7 @@ pedwarn (int opt, const char *gmsgid, ...) Returns true if the warning was printed, false if it was inhibited. */ bool -permerror_at (location_t location, const char *gmsgid, ...) +permerror (location_t location, const char *gmsgid, ...) { diagnostic_info diagnostic; va_list ap; @@ -599,23 +599,6 @@ permerror_at (location_t location, const char *gmsgid, ...) return report_diagnostic (&diagnostic); } -/* Equivalent to permerror_at (input_location, ...). */ - -bool -permerror (const char *gmsgid, ...) -{ - diagnostic_info diagnostic; - va_list ap; - - va_start (ap, gmsgid); - diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location, - permissive_error_kind ()); - diagnostic.option_index = OPT_fpermissive; - va_end (ap); - return report_diagnostic (&diagnostic); -} - - /* A hard error: the code is definitely ill-formed, and an object file will not be produced. */ void |