Patch: gcj warning avoidance

Kaveh R. Ghazi ghazi@caip.rutgers.edu
Tue Mar 20 16:27:00 GMT 2001


 > I'm checking this in as obviously correct.  It is going on the trunk
 > and the branch.  It fixes a warning I noticed while bootstrapping on
 > PPC.
 > 
 > 2001-03-20  Tom Tromey  <tromey@redhat.com>
 > 
 >         * jcf-parse.c (read_class): Initialize `class'.


If you really want to hunt down java dir warnings, try using
contrib/warn_summary.

%warn_summary -java output.log

Counting warnings in the gcc/java subdirectory,
there are 13 warnings in stage3 of this bootstrap.
 
Number of warnings per file:
   6 gcc/java/jcf-parse.c
   3 gcc/java/jvspec.c
   2 gcc/java/jcf-io.c
   1 gcc/java/verify.c
   1 gcc/java/mangle.c
 
Number of warning types:
   5 comparison between pointer and integer
   4 `???' might be used uninitialized in this function
   2 comparison between signed and unsigned
   1 string length `???' is greater than the length `???' ISO C89 compilers are required to support
   1 initialization makes pointer from integer without a cast

%warn_summary -java -wpass output.log

gcc/java/verify.c:416: warning: `message' might be used uninitialized in this function
gcc/java/jcf-io.c:195: warning: comparison between signed and unsigned
gcc/java/jcf-io.c:216: warning: comparison between signed and unsigned
gcc/java/jcf-parse.c:934: warning: initialization makes pointer from integer without a cast
gcc/java/jcf-parse.c:935: warning: comparison between pointer and integer
gcc/java/jcf-parse.c:935: warning: comparison between pointer and integer
gcc/java/jcf-parse.c:935: warning: comparison between pointer and integer
gcc/java/jcf-parse.c:936: warning: comparison between pointer and integer
gcc/java/jcf-parse.c:936: warning: comparison between pointer and integer
gcc/java/mangle.c:317: warning: `saved_current' might be used uninitialized in this function
gcc/java/jvspec.c:68: warning: string length `756' is greater than the length `509' ISO C89 compilers are required to support
gcc/java/jvspec.c:126: warning: `filelist_filename' might be used uninitialized in this function
gcc/java/jvspec.c:128: warning: `filelist_file' might be used uninitialized in this function

--
Kaveh R. Ghazi			Engagement Manager / Project Services
ghazi@caip.rutgers.edu		Qwest Internet Solutions



More information about the Gcc-patches mailing list