summaryrefslogtreecommitdiff
path: root/gcc/java/constants.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-12 17:13:24 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>1999-03-12 17:13:24 +0000
commit6d4b04ca0de2ef2ea731b113666e5b3d1b0353f2 (patch)
tree46e462e2cad9662691fedffe68c7e8bd046c4eb8 /gcc/java/constants.c
parent23289b043684744e907d431860541bae922cc94e (diff)
downloadgcc-6d4b04ca0de2ef2ea731b113666e5b3d1b0353f2.tar.gz
Warning fixes:
* constants.c (find_class_or_string_constant): Cast variable `j' to a `jword' when comparing against one. * expr.c (java_lang_expand_expr): Remove unused variables `has_finally_p' and `op0'. * gjavah.c (print_field_info): Cast a value to jint when comparing against one. Likewise for a jlong. (add_namelet): Likewise cast a `sizeof' to an int when comparing against a signed quantity. * jcf-dump.c (print_signature_type): Remove unused variable `digit'. (print_signature): Don't needlessly dereference variable `str' * jcf-reader.c (get_attribute): Mark variables `max_stack' and `max_locals' with ATTRIBUTE_UNUSED. (jcf_parse_class): Likewise for variable `index'. * parse.h (reverse_jdep_list): Remove static prototype. * parse.y (build_jump_to_finally): Remove prototype and definition. (reverse_jdep_list): Add static prototype. * typeck.c (convert_ieee_real_to_integer): Remove unused variables `assignment' and `expr_decl'. * verify.c (verify_jvm_instructions): Remove unused label `bad_ldc'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@25731 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/constants.c')
-rw-r--r--gcc/java/constants.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/constants.c b/gcc/java/constants.c
index 3679d4e4e6f..81ff7adc35e 100644
--- a/gcc/java/constants.c
+++ b/gcc/java/constants.c
@@ -123,7 +123,7 @@ find_class_or_string_constant (cpool, tag, name)
int i;
for (i = cpool->count; --i > 0; )
{
- if (cpool->tags[i] == tag && cpool->data[i] == j)
+ if (cpool->tags[i] == tag && cpool->data[i] == (jword) j)
return i;
}
i = cpool->count;