warn_hiddenlocals

Controls the recognition of a local variable that hides another local variable.

Syntax
  #pragma warn_hiddenlocals on | off | reset  
Remarks

When on, the compiler issues a warning message when it encounters a local variable that hides another local variable. An example appears in the following listing.

Listing: Example of hidden local variables warning
#pragma warn_hiddenlocals on
void func(int a)

{

   {

      int a; /* WARNING: this 'a' obscures argument 'a'.

   }

}

This pragma does not correspond to any CodeWarrior IDE panel setting. By default, this setting is off.