User`s guide

Pragmas for the DSP56800 and DSP56800E
Pragma Reference
418
Targeting MC56F83xx/DSP5685x Controllers
warn_emptydecl
Controls the recognition of declarations without variables.
Prototype
#pragma warn_emptydecl on | off | reset
Remarks
If you enable this pragma, the compiler displays a warning when it encounters a
declaration with no variables.
Listing C.21 Example of Pragma warn_emptydecl
int ; // WARNING
int i; // OK
This pragma corresponds to the Empty Declarations setting in the C/C++
Preprocessor panel. To check this setting, use __option (warn_emptydecl),
described in Checking Settings
. By default, this pragma is disabled.
warn_extracomma
Controls the recognition of superfluous commas.
Prototype
#pragma warn_extracomma on | off | reset
Remarks
If you enable this pragma, the compiler issues a warning when it encounters an extra
comma.
Listing C.22 Example of Pragma warn_extracomma
enum {l,m,n,o,}; // WARNING: When the warning is enabled, it will
// generate :