aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-07-30 18:31:34 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-07-30 18:31:34 +0000
commitcd531a2eddbe17c94a99af2b62c05fe417b97a94 (patch)
treec33f7ed979269396307f864e8147d16d6e3382c4 /gcc/java/parse.c
parent93b69d0f0d4b3a3a4b6481c50720aa351f77e5e5 (diff)
downloadgcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.zip
gcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.tar.gz
gcc-cd531a2eddbe17c94a99af2b62c05fe417b97a94.tar.bz2
Warning fixes:
* expr.c (build_java_soft_divmod): Provide a default case in switch. (java_lang_expand_expr): Mark parameters `target', `tmode' and `modifier' with ATTRIBUTE_UNUSED. * gjavah.c (process_file): Add braces around ambiguous `else'. * jcf-dump.c (print_access_flags, localvar_free): Change return type to void. * parse.y (java_complete_expand_method): Initialize variable `exception_copy'. (resolve_qualified_expression_name): Likewise for `field_decl'. (patch_method_invocation): Likewise for `class_to_search'. (qualify_ambiguous_name): Likewise for `name' and `ptr_type'. (patch_assignment): Likewise for `lhs_type'. * verify.c (verify_jvm_instructions): Remove unused variable `caller'. From-SVN: r28344
Diffstat (limited to 'gcc/java/parse.c')
-rw-r--r--gcc/java/parse.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gcc/java/parse.c b/gcc/java/parse.c
index da19cda..8876285 100644
--- a/gcc/java/parse.c
+++ b/gcc/java/parse.c
@@ -8503,7 +8503,7 @@ java_complete_expand_method (mdecl)
{
tree fbody = DECL_FUNCTION_BODY (mdecl);
tree block_body = BLOCK_EXPR_BODY (fbody);
- tree exception_copy;
+ tree exception_copy = NULL_TREE;
expand_start_java_method (mdecl);
build_result_decl (mdecl);
@@ -9215,7 +9215,7 @@ resolve_qualified_expression_name (wfl, found_decl, where_found, type_found)
/* We resolve and expression name */
else
{
- tree field_decl;
+ tree field_decl = NULL_TREE;
/* If there exists an early resolution, use it. That occurs
only once and we know that there are more things to
@@ -9628,7 +9628,7 @@ patch_method_invocation (patch, primary, where, is_static, ret_decl)
constructors */
else
{
- tree class_to_search;
+ tree class_to_search = NULL_TREE;
int lc; /* Looking for Constructor */
/* We search constructor in their target class */
@@ -10207,7 +10207,8 @@ static void
qualify_ambiguous_name (id)
tree id;
{
- tree qual, qual_wfl, name, decl, ptr_type, saved_current_class;
+ tree qual, qual_wfl, name = NULL_TREE, decl, ptr_type = NULL_TREE,
+ saved_current_class;
int again, super_found = 0, this_found = 0, new_array_found = 0;
int code;
@@ -11429,7 +11430,7 @@ patch_assignment (node, wfl_op1, wfl_op2)
{
tree rhs = TREE_OPERAND (node, 1);
tree lvalue = TREE_OPERAND (node, 0), llvalue;
- tree lhs_type, rhs_type, new_rhs = NULL_TREE;
+ tree lhs_type = NULL_TREE, rhs_type, new_rhs = NULL_TREE;
int error_found = 0;
int lvalue_from_array = 0;