Export (0) Print
Expand All
Expand Minimize

Compiler Error C2617

'function' : inconsistent return statement

The specified function does not have a declared return type, and a previous return statement did not supply a value.


// C2617.cpp
int i;
func()                   // no return type prototype
   if( i ) return;       // no return value
   else return( 1 );     // C2617 detected on this line
© 2014 Microsoft