User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
428
Targeting MC56F83xx/DSP5685x Controllers
This pragma corresponds to the Pad Bytes Added setting in the C/C++ Warnings
panel. To check this setting, use
__option (warn_padding), described in
Checking Settings
By default, this setting is disabled.
warn_possunwant
Controls the recognition of possible unintentional logical errors.
Prototype
#pragma warn_possunwant on | off | reset
Remarks
If you enable this pragma, the compiler checks for common errors that are legal C/
C++ but might produce unexpected results, such as putting in unintended semicolons
or confusing = and ==.
This pragma corresponds to the Possible Errors setting in theC/C++ Preprocessor
panel. To check this setting, use __option (warn_possunwant), described in
Checking Settings
. By default, this setting is disabled.
warn_ptr_int_conv
Controls the recognition the conversion of pointer values to incorrectly-sized integral
values.
Prototype
#pragma warn_ptr_int_conv on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning if an expression attempts to
convert a pointer value to an integral type that is not large enough to hold the pointer
value.