diff options
author | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-18 11:17:52 +0000 |
---|---|---|
committer | manu <manu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-18 11:17:52 +0000 |
commit | 2b9e35972efedbbbc594d278be0859a155a2274b (patch) | |
tree | 6e8f62722b8c096a18c7f96bbbf77c9c7fc8a01c /gcc/diagnostic.c | |
parent | 2f3dba54452cbd74cd715daed0fd1bfa02a2c174 (diff) | |
download | gcc-2b9e35972efedbbbc594d278be0859a155a2274b.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139193 138bc75d-0d04-0410-961f-82ee72b054a4
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 54c2da74374..dfd3c9d1b08 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 |