warn_unusedarg

Controls the recognition of unreferenced arguments.

Syntax
  #pragma warn_unusedarg on | off | reset  
Remarks

If you enable this pragma, the compiler issues a warning message when it encounters an argument you declare but do not use.

This check helps you find arguments that you either misspelled or did not use in your program. The following listing shows an example.

Listing: Warning about unused function arguments
void func(int temp, int error); 
{

  error = do_something(); /* WARNING: temp is unused. */

}  

To prevent this warning, you can declare an argument in a few ways: