]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
jcf-io.c (read_zip_member): Cast to long in comparison with signed value.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Sun, 29 Apr 2001 11:24:37 +0000 (11:24 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Sun, 29 Apr 2001 11:24:37 +0000 (11:24 +0000)
* jcf-io.c (read_zip_member): Cast to long in comparison with
signed value.

* jvspec.c (lang_specific_driver): Initialize variables.

* mangle.c (find_compression_record_match): Likewise.

* typeck.c (build_null_signature): Provide static prototype.  Mark
parameter with ATTRIBUTE_UNUSED.

* verify.c (verify_jvm_instructions): Initialize variable.

From-SVN: r41671

gcc/java/ChangeLog
gcc/java/jcf-io.c
gcc/java/jvspec.c
gcc/java/mangle.c
gcc/java/typeck.c
gcc/java/verify.c

index 9a10cf4b90159b77eaad00edd9d984da41b8fb6e..163f988edd69111acae1c7b969c1d8d1250dfa27 100644 (file)
@@ -1,3 +1,17 @@
+2001-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * jcf-io.c (read_zip_member): Cast to long in comparison with
+       signed value.
+
+       * jvspec.c (lang_specific_driver): Initialize variables.
+
+       * mangle.c (find_compression_record_match): Likewise.
+
+       * typeck.c (build_null_signature): Provide static prototype.  Mark
+       parameter with ATTRIBUTE_UNUSED.
+
+       * verify.c (verify_jvm_instructions): Initialize variable.
+
 2001-04-27  Per Bothner  <per@bothner.com>
 
        * parse.y (java_expand_classes):  Don't change ctxp_for_generation
index 655e381200609cd4b7d3e6c2f696f461d19bfe16..f254438050667dd527c651c6f5b26a6d243efb0a 100644 (file)
@@ -192,7 +192,7 @@ DEFUN(read_zip_member, (jcf, zipd, zipf),
              jcf->read_ptr = jcf->buffer;
              jcf->read_end = jcf->buffer_end;
              if (lseek (zipf->fd, zipd->filestart, 0) < 0
-                 || read (zipf->fd, jcf->buffer, zipd->size) != zipd->size)
+                 || read (zipf->fd, jcf->buffer, zipd->size) != (long) zipd->size)
                return -2;
            }
          else
@@ -213,7 +213,7 @@ DEFUN(read_zip_member, (jcf, zipd, zipf),
              d_stream.next_in = buffer;
              d_stream.avail_in = zipd->size;
              if (lseek (zipf->fd, zipd->filestart, 0) < 0
-                 || read (zipf->fd, buffer, zipd->size) != zipd->size)
+                 || read (zipf->fd, buffer, zipd->size) != (long) zipd->size)
                return -2;
              /* Handle NO_HEADER using undocumented zlib feature.
                  This is a very common hack.  */
index fd6ec5aab928e494bf6bf33da55f3e58694efa6b..c02071ff3084590c163eadcdc77716c22ccfbc0d 100644 (file)
@@ -126,9 +126,9 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
   int indirect_files_count = 0;
 
   /* Name of file containing list of files to compile. */
-  char *filelist_filename;
+  char *filelist_filename = 0;
 
-  FILE *filelist_file;
+  FILE *filelist_file = 0;
 
   /* The number of arguments being added to what's in argv, other than
      libraries.  */
index 166d96ba3626e82e1d6f548a0a247c65ae64e0d3..027eb5d5babc5bbc45a814c5849e600ce517a730 100644 (file)
@@ -314,7 +314,7 @@ find_compression_record_match (type, next_current)
      tree *next_current;
 {
   int i, match;
-  tree current, saved_current;
+  tree current, saved_current = NULL_TREE;
 
   /* Search from the beginning for something that matches TYPE, even
      partially. */
index cc514d66d7556135e2124626272bd716e8d55042..b61a290c7ed756a71f752e92fc262cfd4c3dbf91 100644 (file)
@@ -40,6 +40,7 @@ static tree convert_ieee_real_to_integer PARAMS ((tree, tree));
 static tree parse_signature_type PARAMS ((const unsigned char **,
                                         const unsigned char *));
 static tree lookup_do PARAMS ((tree, tree, tree, tree, tree (*)(tree)));
+static tree build_null_signature PARAMS ((tree));
 
 tree * type_map;
 extern struct obstack permanent_obstack;
@@ -579,9 +580,9 @@ get_type_from_signature (tree signature)
   return type;
 }
 
-tree
+static tree
 build_null_signature (type)
-     tree type;
+     tree type ATTRIBUTE_UNUSED;
 {
   return NULL_TREE;
 }
index 0a63477d7153de69dfe167012196feb20e5dbade..941484350c1daf591dd24484f4e744edb899e8b6 100644 (file)
@@ -411,7 +411,7 @@ verify_jvm_instructions (jcf, byte_ops, length)
   int PC;
   int oldpc = 0; /* PC of start of instruction. */
   int prevpc = 0;  /* If >= 0, PC of previous instruction. */
-  const char *message;
+  const char *message = 0;
   char *pmessage;
   int i;
   int index;