warn_missingreturn

Issues a warning when a function that returns a value is missing a return statement.

Syntax
#pragma warn_missingreturn on | off | reset 
Remarks

An example is shown in the following listing.

Listing: 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 Language panel. To check this setting, use __option(warn_missingreturn), described in Checking Pragma Settings.

By default, this pragma is set to the same value as __option(extended_errorcheck).