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/check-init.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/check-init.c')
-rw-r--r-- | gcc/java/check-init.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/java/check-init.c b/gcc/java/check-init.c index be04851..1a86c80 100644 --- a/gcc/java/check-init.c +++ b/gcc/java/check-init.c @@ -197,9 +197,9 @@ get_variable_decl (tree exp) static void final_assign_error (tree name) { - static const char format[] - = "Can't reassign a value to the final variable `%s'"; - parse_error_context (wfl, format, IDENTIFIER_POINTER (name)); + parse_error_context (wfl, + "Can't reassign a value to the final variable %qs", + IDENTIFIER_POINTER (name)); } static void @@ -466,7 +466,7 @@ check_init (tree exp, words before) && index >= 0 && ! ASSIGNED_P (before, index)) { parse_error_context - (wfl, "Variable `%s' may not have been initialized", + (wfl, "Variable %qs may not have been initialized", IDENTIFIER_POINTER (DECL_NAME (exp))); /* Suppress further errors. */ DECL_BIT_INDEX (exp) = -2; @@ -482,7 +482,7 @@ check_init (tree exp, words before) if (index >= 0 && ! ASSIGNED_P (before, index)) { parse_error_context - (wfl, "variable `%s' may not have been initialized", + (wfl, "variable %qs may not have been initialized", IDENTIFIER_POINTER (DECL_NAME (tmp))); /* Suppress further errors. */ DECL_BIT_INDEX (tmp) = -2; @@ -965,7 +965,7 @@ check_for_initialization (tree body, tree mdecl) if (index >= 0 && ! ASSIGNED_P (before, index)) { if (! is_finit_method) - error ("%Jfinal field `%D' may not have been initialized", + error ("%Jfinal field %qD may not have been initialized", decl, decl); } else if (is_finit_method) |