User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
424
Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this pragma, the compiler issues a warning for all implicit arithmetic
conversions when the destination type might not represent the source value. Listing
C.26 provides an example.
Listing C.26 Example of Implicit Conversion
#pragma warn_implicitconv on
float f;
signed int si;
unsigned int ui;
int main()
{
f = si; // OK
si = f; // WARNING
ui = si; // WARNING
si = ui; // WARNING
}
The default setting for warn_impl_i2fconf pragma is disabled. Use the
warn_implicitconv pragma along with the warn_impl_i2f_conv pragma
to generate the warning for the int-to-float conversion.
This pragma corresponds to the Implicit Arithmetic Conversions setting in the C/
C++ Preprocessor panel. To check this setting, use __option
(warn_implicitconv), described in Checking Settings
. By default, this
pragma is disabled.
warn_largeargs
Controls the issuing of warnings for passing non-integer numeric values to
unprototyped functions.
Prototype
#pragma warn_largeargs on | off | reset