expr.c (expand_invoke): Mark parameter `nargs' with ATTRIBUTE_UNUSED.
authorKaveh R. Ghazi <ghazi@snafu.rutgers.edu>
Wed, 12 May 1999 17:04:30 +0000 (17:04 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Wed, 12 May 1999 17:04:30 +0000 (17:04 +0000)
        * 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.

From-SVN: r26907

gcc/java/ChangeLog
gcc/java/expr.c
gcc/java/jcf-io.c
gcc/java/jcf-reader.c

index 30ad75d110c988c0b808a75be3d767fad9d8ba91..588e1aff19e00372cca135530253be4a6371d49e 100644 (file)
@@ -1,5 +1,15 @@
 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.
 
index d6e51a1cf2df7d613d03e7eda8780f3ce8f3b54e..d975c42c5ed72cd9cbe219121768523013634fe9 100644 (file)
@@ -1565,7 +1565,7 @@ static void
 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(&current_jcf->cpool, method_ref_index);
   tree method_name = COMPONENT_REF_NAME (&current_jcf->cpool, method_ref_index);
@@ -2118,7 +2118,8 @@ expand_byte_code (jcf, method)
     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); }                                    \
   }
 
index e4d614d687e5ead3ac043d37fa64b080f9638995..95332186545bf70efcf9e815847cf474d1f4ba57 100644 (file)
@@ -36,7 +36,7 @@ The Free Software Foundation is independent of Sun Microsystems, Inc.  */
 
 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);
index accb1a117067ecbd578ca2a122ba11dd8ecdea00..c6207a235c933ae7abe682ca61a493f7d7ee58c1 100644 (file)
@@ -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;
 }