Wish: Variable Not Used Warning

Koroskin Denis 2korden at gmail.com
Sat Jul 5 16:41:58 PDT 2008


On Sun, 06 Jul 2008 03:34:52 +0400, Nick Sabalausky <a at a.a> wrote:

> I don't suppose there's any chance of DMD getting a warning for
> variables/arguments that are declared but never accessed? Just today  
> alone
> there's been two bugs I spent 10-30 minutes going nuts trying to track  
> down
> that turned out to be variables I had intended to use but forgot to.
>
>

Agreed, put it into a bugzilla, otherwise it may get lost.

Since D has no warnings, it should be an error, but it would break too  
much of the existing code.
Better solution might be to enable this check when compiling with -w...



More information about the Digitalmars-d mailing list