diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-12 17:04:30 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-05-12 17:04:30 +0000 |
commit | e918799b7f980edcdc23269381412e5a7bfa6294 (patch) | |
tree | 70715ebcac70670659d707679cdd0ba84cbf5d91 /gcc/java/jcf-reader.c | |
parent | 4d08997e274ae18c0289f8e27df1ff116a2aa3c0 (diff) | |
download | gcc-e918799b7f980edcdc23269381412e5a7bfa6294.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26907 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/jcf-reader.c')
-rw-r--r-- | gcc/java/jcf-reader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/jcf-reader.c b/gcc/java/jcf-reader.c index accb1a11706..c6207a235c9 100644 --- a/gcc/java/jcf-reader.c +++ b/gcc/java/jcf-reader.c @@ -35,7 +35,7 @@ DEFUN(get_attribute, (jcf), 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) @@ -128,7 +128,7 @@ DEFUN(get_attribute, (jcf), 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; } |