[Issue 3960] Unused local variables not reported

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jul 30 10:26:08 PDT 2012


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


rswhite4 at googlemail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rswhite4 at googlemail.com


--- Comment #30 from rswhite4 at googlemail.com 2012-07-30 10:26:03 PDT ---
I wrote a short programm which detect and list unused variables.
I'm sure it isn't perfect but it passed most of my test cases and IMO 
something like this should be integrated into the D compiler.
Maybe automatically if you use the -w or -wi compiler flag switch.

Code: http://dpaste.dzfl.pl/c5f1d2ba
Some of my testcases: http://dpaste.dzfl.pl/f74da85e

-- 
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