[Issue 3960] Unused local variables not reported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 10 14:09:34 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=3960



--- Comment #10 from bearophile_hugs at eml.cc 2011-06-10 14:04:58 PDT ---
(In reply to comment #9)
> I would point out that if it is made an error to have unused local variables,
> function parameters must _not_ be included in it. That would be a major problem
> in cases where overridden functions don't use all of their parameters, but they
> have to have them because the base class' function does.

Don't worry, warnings against "unused local variables" and "unused argument
values" are meant to be two distinct features. Each of them needs a separate
discussion and has to stand for its own.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list