User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
414
Targeting MC56F83xx/DSP5685x Controllers
NOTE If you enable this pragma, your code might not be compatible with
libraries that were compiled when the pragma was disabled. In
particular, your code might not work with the ANSI libraries
included with CodeWarrior.
This pragma corresponds to the Use Unsigned Chars setting in the C/C++ Language
panel. To check this setting, use __option (unsigned_char), described in
Checking Settings
. By default, this setting is disabled.
unused
Controls the suppression of warnings for variables and parameters that are not
referenced in a function.
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 scope of the function.
Listing C.17 Example of Pragma unused() in C
#pragma warn_unusedvar on // See pragma warn_unusedvar.
#pragma warn_unusedarg on // See pragma warn_unusedarg
.
static void ff(int a)
{
int b;
#pragma unused(a,b) // Compiler does not warn
// that a and b are unused
// . . .
}
This pragma does not correspond to any panel setting in the C/C++ Language panel.
By default, this pragma is disabled.