'otable_syms' defined but not used

Per Bothner per@bothner.com
Mon Sep 22 20:50:00 GMT 2003


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/




More information about the Java-patches mailing list