EnableExplicit : Warning for unused declared variables
Posted: Sat Nov 23, 2013 12:39 am
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.
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.