This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: gcj and '-Wall'?


>>>>> "Adam" == ADAM Sulmicki <adam@cfar.umd.edu> writes:

Adam> It seems that '-Wall' is not supported with gcj.
Adam> Is this correct?

-Wall is supported.  It just doesn't do what you think.

Adam> I was hoping to use gcj to let me
Adam> know about any unused variables, and any other possible
Adam> bugs..

Use -Wunused.  This is apparently a general gcc option.  It works with
gcj (but, unfortunately, on your example it prints too much -- a
lurking gcj bug).

I agree that gcj should enable -Wunused when -Wall is given, because
that is similar to what the C compiler does.  I consider this a bug in
gcj.  I'll submit a patch.

Tom




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]