'otable_syms' defined but not used

Andrew Haley aph@redhat.com
Mon Sep 22 18:56:00 GMT 2003


Jeff Sturm writes:
 > On Sat, 20 Sep 2003, Michael Koch wrote:
 > > I tried to compile libgcj with GCJFLAGS="-Wall -Werror" just for fun.
 > > Unfortunately it didnt even compiled the first java file it wanted to
 > > compile: java/lang/Class.java. I got this:
 > 
 > Interesting, I've never tried -Wall in libgcj.  There are a lot of
 > warnings!
 > 
 > > Is there a way to not define 'otable_syms' if it is unused ?
 > 
 > Try this.  It passed a full "make check" in libjava.
 > 
 > Jeff
 > 
 > 2003-09-20  Jeff Sturm  <jsturm@one-point.com>
 > 
 > 	* decl.c (java_init_decl_processing): Don't emit otable decls
 > 	if flag_indirect_dispatch is not set.

This looks right, but I'm making a lot of changes in this area at the
moment.  I guess you might as well check it in now, altho' it'll cause
a merge error when I come to check my stuff in.

I'm not sure that "defined but not used" makes any sense as part of
-Wall in Java.  It's not unreasonable to have unused fields for future
expansion, and we don't have the equivalent of __attribute__((unused)).

Andrew.



More information about the Java-patches mailing list