aboutsummaryrefslogtreecommitdiff
path: root/gcc/toplev.h
diff options
context:
space:
mode:
authorManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-21 10:55:13 +0000
committerManuel López-Ibáñez <manu@gcc.gnu.org>2008-08-21 10:55:13 +0000
commit509c9d60e430b84903eb1232a70871aa93150623 (patch)
tree83b0791500b25a6c18b622d8641f3ac55eb3f00b /gcc/toplev.h
parent2fb63453bdd24fff367b4ddb18c59b3972520728 (diff)
downloadgcc-509c9d60e430b84903eb1232a70871aa93150623.zip
gcc-509c9d60e430b84903eb1232a70871aa93150623.tar.gz
gcc-509c9d60e430b84903eb1232a70871aa93150623.tar.bz2
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/toplev.h')
-rw-r--r--gcc/toplev.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/toplev.h b/gcc/toplev.h
index a73cbf8..0064613 100644
--- a/gcc/toplev.h
+++ b/gcc/toplev.h
@@ -63,9 +63,8 @@ extern bool warning_at (location_t, int, const char *, ...)
extern void error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);
extern void fatal_error (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2)
ATTRIBUTE_NORETURN;
-/* Pass one of the OPT_W* from options.h as the first parameter. */
-extern bool pedwarn (int, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
-extern bool pedwarn_at (location_t, int, const char *, ...)
+/* Pass one of the OPT_W* from options.h as the second parameter. */
+extern bool pedwarn (location_t, int, const char *, ...)
ATTRIBUTE_GCC_DIAG(3,4);
extern bool permerror (location_t, const char *, ...) ATTRIBUTE_GCC_DIAG(2,3);
extern void sorry (const char *, ...) ATTRIBUTE_GCC_DIAG(1,2);