User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
423Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this pragma, the compiler issues a warning for implicitly converting
either from signed int to unsigned int or vice versa. Listing C.25
provides
an example.
Listing C.25 Example of Implicit Conversions Between Signed int and unsigned
int
#pragma warn_implicit_conv on
#pragma warn_impl_s2u_conv on
signed int si;
unsigned int ui;
int main()
{
ui = si; // WARNING
si = ui; // WARNING
#pragma warn_impl_s2u_conv off
ui = si; // OK
si = ui; // 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_s2u_conv),
described in Checking Settings
. By default, this pragma is enabled.
warn_implicitconv
Controls the issuing of warnings for all implicit arithmetic conversions.
Prototype
#pragma warn_implicitconv on | off | reset