This is the mail archive of the java-patches@gcc.gnu.org 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]
Other format: [Raw text]

Re: 'otable_syms' defined but not used


Andrew Haley wrote:

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,

The warning is only appropriate for private fields (or equivalent, such as protected fields in final classes), and local variables. I don't think we can warn about unused parameters.

But I see no benefit to having unused private fields, and
we should warn about those.
--
	--Per Bothner
per@bothner.com   http://per.bothner.com/



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