Wish: Variable Not Used Warning

Nick Sabalausky a at a.a
Sat Jul 5 20:47:54 PDT 2008


"Koroskin Denis" <2korden at gmail.com> wrote in message 
news:op.uduer8uhenyajd at korden...
> 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...

Added as issue #2197
http://d.puremagic.com/issues/show_bug.cgi?id=2197 





More information about the Digitalmars-d mailing list