Page 1 of 1

EnableExplicit : Warning for unused declared variables

Posted: Sat Nov 23, 2013 12:39 am
by charvista
I believe EnableExplicit must warn also for unused declared variables.

As stated here in "weaker points" as well:
http://web.newsguy.com/lmgava/purebasic/about/index.php
Defined but unused variables are not reported at the end of the compilation. This pose the risk of forgetting a variable or maybe even an array or something bigger inside a procedure because you modify it and forget to remove a variable no more referenced.

And it makes full-sense of EnableExplicit.

Re: EnableExplicit : Warning for unused declared variables

Posted: Sat Nov 23, 2013 12:52 am
by luis
Hey ! I'm innocent, I don't have nothing to do with it ! I don't even know him !#$%!@*! :wink:


EDIT:

Just found this post by chance 4 years later.
I bet there are tons of dead variables in PB programs at this very moment waiting to be reported ...

Re: EnableExplicit : Warning for unused declared variables

Posted: Sat Nov 23, 2013 3:43 am
by IdeasVacuum
+ 1