aboutsummaryrefslogtreecommitdiff
path: root/gcc/diagnostic.c
diff options
context:
space:
mode:
authorManuel Lopez-Ibanez <manu@gcc.gnu.org>2008-08-18 11:17:52 +0000
committerManuel Lopez-Ibanez <manu@gcc.gnu.org>2008-08-18 11:17:52 +0000
commit68d7f72cde2dcabd8210a80400973d3d79c4b101 (patch)
tree6e8f62722b8c096a18c7f96bbbf77c9c7fc8a01c /gcc/diagnostic.c
parentf6c17ca4831ecff26f88069dfa3b429c7ae947e3 (diff)
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: https://gcc.gnu.org/svn/gcc/trunk@139193 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r--gcc/diagnostic.c19
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