Eliminate natVMSecurityManager.cc warning

Andrew Haley aph@redhat.com
Wed Jun 18 09:05:00 GMT 2003


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.



More information about the Java-patches mailing list