diff options
author | Ranjit Mathew <rmathew@hotmail.com> | 2004-10-15 18:43:10 +0000 |
---|---|---|
committer | Ranjit Mathew <rmathew@gcc.gnu.org> | 2004-10-15 18:43:10 +0000 |
commit | a1402da35c57aa1c074bfc50b20a2a3135ff2987 (patch) | |
tree | 2a09c6df4e237628631d8886fb56b90f7e8897d8 /gcc/java/decl.c | |
parent | e68a07e8d547b03b769527365a40721d4d9298c6 (diff) | |
download | gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.zip gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.gz gcc-a1402da35c57aa1c074bfc50b20a2a3135ff2987.tar.bz2 |
parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and rename parameter 'msg' to 'msgid' in function...
* parse.y (parse_warning_context): Remove ATTRIBUTE_PRINTF_2 and
rename parameter 'msg' to 'msgid' in function declaration.
(issue_warning_error_from_context): Likewise.
(yyerror): Rename parameter 'msg' to 'msgid'.
(all over): Use new quoting style for diagnostics.
* check-init.c: Use %<, %> and %q for quoting in diagnostics,
if possible, else convert `foo' to 'foo'.
* class.c: Likewise.
* decl.c: Likewise.
* expr.c: Likewise.
* jcf-io.c: Likewise.
* jcf-parse.c: Likewise.
* lang.c: Likewise.
* lex.c: Likewise.
* parse.h: Likewise.
From-SVN: r89110
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c index b0a25dc..15308c3 100644 --- a/gcc/java/decl.c +++ b/gcc/java/decl.c @@ -1196,10 +1196,10 @@ pushdecl (tree x) && chain_member (oldlocal, current_binding_level->level_chain->names)) { if (TREE_CODE (oldlocal) == PARM_DECL) - pedwarn ("declaration of `%s' shadows a parameter", + pedwarn ("declaration of %qs shadows a parameter", IDENTIFIER_POINTER (name)); else - pedwarn ("declaration of `%s' shadows a symbol from the parameter list", + pedwarn ("declaration of %qs shadows a symbol from the parameter list", IDENTIFIER_POINTER (name)); } @@ -1221,12 +1221,12 @@ pushdecl (tree x) but there is no way to tell it's not a definition. */ ; else if (oldlocal != 0 && TREE_CODE (oldlocal) == PARM_DECL) - warnstring = "declaration of `%s' shadows a parameter"; + warnstring = "declaration of %qs shadows a parameter"; else if (oldlocal != 0) - warnstring = "declaration of `%s' shadows previous local"; + warnstring = "declaration of %qs shadows previous local"; else if (IDENTIFIER_GLOBAL_VALUE (name) != 0 && IDENTIFIER_GLOBAL_VALUE (name) != error_mark_node) - warnstring = "declaration of `%s' shadows global declaration"; + warnstring = "declaration of %qs shadows global declaration"; if (warnstring) warning (warnstring, IDENTIFIER_POINTER (name)); |