[Bug java/38189] New: Java: set but not used local variable in tight loop

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Nov 20 09:27:00 GMT 2008


I just had a look at some of the source code of the Java package in
the GNU gcc version 4.4.0 snapshot 20081114

gcc-4.4-20081114/libjava/classpath/gnu/xml/aelfred2/XmlParser.java:3205   Avoid
unused local variables such as 'ampRead'.

I have checked the source code and I agree.
Suggest remove set but not used local variable, especially since it is written
to for each character read.


-- 
           Summary: Java: set but not used local variable in tight loop
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38189



More information about the Gcc-bugs mailing list