User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
421Targeting MC56F83xx/DSP5685x Controllers
warn_impl_f2i_conv
Controls the issuing of warnings for implicit float-to-int conversions.
Prototype
#pragma warn_impl_f2i_conv on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning for implicitly converting
floating-point values to integral values. Listing C.23
provides an example.
Listing C.23 Example of Implicit float-to-int Conversion
#pragma warn_implicit_conv on
#pragma warn_impl_f2i_conv on
float f;
signed int si;
int main()
{
si = f; // WARNING
#pragma warn_impl_f2i_conv off
si = f; // OK
}
Use this pragma along with the warn_implicitconv pragma.
This pragma does not correspond to any panel setting in the C/C++ Preprocessor
panel. To check this setting, use __option (warn_impl_f2i_conv),
described in Checking Settings
. By default, this pragma is enabled.
warn_impl_i2f_conv
Controls the issuing of warnings for implicit int-to-float conversions.