1999-05-12 Kaveh R. Ghazi <ghazi@snafu.rutgers.edu>
+ * expr.c (expand_invoke): Mark parameter `nargs' with
+ ATTRIBUTE_UNUSED.
+ (PRE_LOOKUP_SWITCH): Likewise for variable `match'.
+
+ * jcf-io.c (jcf_unexpected_eof): Mark parameter `count' with
+ ATTRIBUTE_UNUSED.
+
+ * jcf-reader.c (get_attribute): Cast a value to long
+ when comparing against a signed expression. Likewise.
+
* lex.h: Never define HOST_WIDE_INT, HOST_BITS_PER_WIDE_INT or
HOST_BITS_PER_CHAR.
expand_invoke (opcode, method_ref_index, nargs)
int opcode;
int method_ref_index;
- int nargs;
+ int nargs ATTRIBUTE_UNUSED;
{
tree method_signature = COMPONENT_REF_SIGNATURE(¤t_jcf->cpool, method_ref_index);
tree method_name = COMPONENT_REF_NAME (¤t_jcf->cpool, method_ref_index);
NOTE_LABEL (default_offset+oldpc); \
if (npairs >= 0) \
while (--npairs >= 0) { \
- jint match = IMMEDIATE_s4; jint offset = IMMEDIATE_s4; \
+ jint match ATTRIBUTE_UNUSED = IMMEDIATE_s4; \
+ jint offset = IMMEDIATE_s4; \
NOTE_LABEL (offset+oldpc); } \
}
int
DEFUN(jcf_unexpected_eof, (jcf, count),
- JCF *jcf AND int count)
+ JCF *jcf AND int count ATTRIBUTE_UNUSED)
{
if (jcf->filename)
fprintf (stderr, "Premature end of .class file %s.\n", jcf->filename);
uint32 start_pos = JCF_TELL(jcf);
int name_length;
unsigned char *name_data;
- JCF_FILL (jcf, attribute_length);
+ JCF_FILL (jcf, (long) attribute_length);
if (attribute_name <= 0 || attribute_name >= JPOOL_SIZE(jcf))
return -2;
if (JPOOL_TAG (jcf, attribute_name) != CONSTANT_Utf8)
JCF_SKIP (jcf, attribute_length);
#endif
}
- if (start_pos + attribute_length != JCF_TELL(jcf))
+ if ((long) (start_pos + attribute_length) != JCF_TELL(jcf))
return -1;
return 0;
}