diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-21 10:55:13 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-21 10:55:13 +0000 |
commit | 509c9d60e430b84903eb1232a70871aa93150623 (patch) | |
tree | 83b0791500b25a6c18b622d8641f3ac55eb3f00b /gcc/diagnostic.c | |
parent | 2fb63453bdd24fff367b4ddb18c59b3972520728 (diff) | |
download | gcc-509c9d60e430b84903eb1232a70871aa93150623.tar.gz |
diagnostic.c (pedwarn_at): Rename as pedwarn.
2008-08-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
* diagnostic.c (pedwarn_at): Rename as pedwarn.
(pedwarn): Delete.
* toplev.h (pedwarn_at): Likewise.
* builtins.c: Update all calls to pedwarn.
* c-lex.c: Likewise.
* toplev.c: Likewise.
* c-tree.h: Likewise.
* c-decl.c: Likewise.
* c-errors.c: Likewise.
* c-typeck.c: Likewise.
* c-common.c: Likewise.
* c-parser.c: Likewise.
cp/
* typeck.c: Update all calls to pedwarn.
* decl.c: Likewise.
* call.c: Likewise.
* error.c: Likewise.
* pt.c: Likewise.
* name-lookup.c: Likewise.
* parser.c: Likewise.
fortran/
* f95-lang.c: Update all calls to pedwarn.
From-SVN: r139373
Diffstat (limited to 'gcc/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index dbe94a89958..02423fab7df 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -551,7 +551,7 @@ warning_at (location_t location, int opt, const char *gmsgid, ...) Returns true if the warning was printed, false if it was inhibited. */ bool -pedwarn_at (location_t location, int opt, const char *gmsgid, ...) +pedwarn (location_t location, int opt, const char *gmsgid, ...) { diagnostic_info diagnostic; va_list ap; @@ -563,21 +563,6 @@ pedwarn_at (location_t location, int opt, const char *gmsgid, ...) return report_diagnostic (&diagnostic); } -/* Equivalent to pedwarn_at using INPUT_LOCATION. */ - -bool -pedwarn (int opt, const char *gmsgid, ...) -{ - diagnostic_info diagnostic; - va_list ap; - - va_start (ap, gmsgid); - diagnostic_set_info (&diagnostic, gmsgid, &ap, input_location, DK_PEDWARN); - diagnostic.option_index = opt; - va_end (ap); - return report_diagnostic (&diagnostic); -} - /* A "permissive" error at LOCATION: issues an error unless -fpermissive was given on the command line, in which case it issues a warning. Use this for things that really should be errors but we |