aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-03-28 19:22:10 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-03-28 19:22:10 +0000
commit152f94fc94fe166ddd21b31017470d3f686932ea (patch)
treebc9d1db851875472c8c6aa617724097266558a6f /gcc/java/class.c
parent3228bc05fc4414db84bd0a81099d22ff1bd4a4e9 (diff)
downloadgcc-152f94fc94fe166ddd21b31017470d3f686932ea.zip
gcc-152f94fc94fe166ddd21b31017470d3f686932ea.tar.gz
gcc-152f94fc94fe166ddd21b31017470d3f686932ea.tar.bz2
Warning fixes:
* class.c (maybe_add_interface): Remove unused variable `interface_binfo'. (make_class_data): Use = for assignment, not ==. Likewise. (emit_register_classes): Remove unused variable `decl'. * lex.c: Fix comment so as not to contain an embedded `/*'. * verify.c (verify_jvm_instructions): Remove unused variable `self_type'. From-SVN: r26046
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index cb418cd..4c924d0 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -333,7 +333,6 @@ maybe_add_interface (this_class, interface_class)
tree this_class, interface_class;
{
tree basetype_vec = TYPE_BINFO_BASETYPES (this_class);
- tree interface_binfo = make_tree_vec (6);
int i;
int n = TREE_VEC_LENGTH (basetype_vec);
for (i = 0; ; i++)
@@ -1100,7 +1099,7 @@ make_class_data (type)
{
int super_index = alloc_class_constant (super);
super = build_int_2 (super_index, 0);
- TREE_TYPE (super) == ptr_type_node;
+ TREE_TYPE (super) = ptr_type_node;
}
/* Build and emit the array of implemented interfaces. */
@@ -1126,7 +1125,7 @@ make_class_data (type)
{
int int_index = alloc_class_constant (iclass);
index = build_int_2 (int_index, 0);
- TREE_TYPE (index) == ptr_type_node;
+ TREE_TYPE (index) = ptr_type_node;
}
init = tree_cons (NULL_TREE, index, init);
}
@@ -1703,8 +1702,6 @@ register_class ()
void
emit_register_classes ()
{
- tree decl = getdecls ();
-
extern tree get_file_function_name PROTO((int));
tree init_name = get_file_function_name ('I');
tree init_type = build_function_type (void_type_node, end_params_node);