1. No used variable warnings?

What determines whether unused variables will generate a warning upon 
closing a program?  I am modifying this program that has many unused 
variables that I want to clean up but I wanted the interpreter to list 
them all for me so that I don't clean up the ones I really need.  But I 
get no warnings at all when my progam exits.  I even declared some bogus 
variables that I know aren't used but still no warnings.

I also wrote a simple test program with some unused variables and they 
do get reported...

I am using version 2.2 and I am not using "without warning".

Is there a way to force unused variable reporting?

-- Brian

new topic     » topic index » view message » categorize

2. Re: No used variable warnings?

Brian Broker writes:
> What determines whether unused variables will 
> generate a warning upon closing a program? 

Without checking the source code, I recall that
it might not report unused global variables,since it never
really sees the end of scope for these variables.
Also, if you call abort() instead of falling off the end
of the main file, it won't know if variables are really unused or not.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu