This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
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/