[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
unused

Description:
Controls the suppression of warnings for variables and parameters that aren't referenced in a function.
Compatibility:
This pragma is compatible with the following platform targets:
Prototype:
#pragma unused ( var_name [, var_name ]... )
Remarks:
This pragma suppresses the compile time warnings for the unused variables and parameters specified in its argument list. You can use this pragma only within a function body, and the listed variables must be within the function's scope. You cannot use this pragma with functions defined within a class definition or with template functions. For example:
#pragma warn_unusedvar on
#pragma warn_unusedarg on
static void ff(int a)
{
int b;
#pragma unused(a,b) // Compiler won't complain
// that a and b are unused
// . . .
}
This pragma does not correspond to an option in any settings panel.
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000