warn_missingreturn

Issues a warning message 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 figure.

Listing: Example of warn_missingreturn pragma
#pragma warn_missingreturn on
int func() 

{

  /* WARNING: no return statement. */

}