This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Eliminate natVMSecurityManager.cc warning
- From: Andrew Haley <aph at redhat dot com>
- To: Matt Kraai <kraai at alumni dot cmu dot edu>
- Cc: java-patches at gcc dot gnu dot org
- Date: Wed, 18 Jun 2003 10:05:36 +0100
- Subject: Eliminate natVMSecurityManager.cc warning
- References: <20030618060518.GA210@ftbfs.org>
Matt Kraai writes:
> Howdy,
>
> natVMSecurityManager.cc generates the following warning:
>
> ../../../../gcc/libjava/java/lang/natVMSecurityManager.cc: In static member
> function `static JArray<java::lang::Class*>*
> java::lang::VMSecurityManager::getClassContext()':
> ../../../../gcc/libjava/java/lang/natVMSecurityManager.cc:28: warning: unused
> variable `int maxlen'
>
> It appears that
>
> * java/lang/natVMSecurityManager.cc (getClassContext): Fix
> infinite loop.
>
> incorrectly replaced maxlen with len. The following patch changes
> it back to maxlen.
>
> Rebuilt and regression tested libjava on
> powerpc-unknown-linux-gnu, and checked that the warning was
> eliminated.
>
> I can commit to the GCC repository but not to the Classpath
> repository.
>
> OK to commit?
Thanks. That one qualifies as obvious, I think. :-)
Andrew.