User`s guide
Pragmas for the DSP56800 and DSP56800E
Pragma Reference
425Targeting MC56F83xx/DSP5685x Controllers
Remarks
If you enable this pragma, the compiler issues a warning if you attempt to pass a non-
integer numeric value, such as a float or long long, to an unprototyped function when
the require_prototypes
pragma is disabled.
This pragma does not correspond to any panel setting in the C/C++ Preprocessor
panel. To check this setting, use __option (warn_largeargs), described in
Checking Settings
. By default, this pragma is disabled.
warn_missingreturn
Issues a warning when a function that returns a value is missing a return statement.
Prototype
#pragma warn_missingreturn on | off | reset
Remarks
An example is shown in Listing C.27
.
Listing C.27 Example of warn_missingreturn pragma
#pragma warn_missingreturn on
int foo()
{
// no return statement in foo()
} // generates a warning: return value expected
This pragma corresponds to the Missing ‘return’ Statements option in the C/C++
Warnings panel. To check this setting, use __option (warn_missingreturn),
described in Checking Settings
By default, this pragma is set to the same value as __option
(extended_errorcheck).