RE: No used variable warnings?
- Posted by Brian Broker <bkb at cnw.com> Feb 25, 2002
- 434 views
I had also tried that with no effect. I believe that the scope on with/without is similar to constants/variables/routines. If an include file contains "without warning" then I won't get warnings for only that include file. But it's my main program that I'm dealing with and I have no "without warning" and adding "with warning" (even after my includes) doesn't change anything. -- Brian Chris wrote: > I'm guessing you have included files in you app. One of them declares > without warning (what's the scope on "with/without"?) > > Try adding "with warning" to your main module after your "include" > declarations. > > Chris > > Brian Broker wrote: > > 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 > > > >