Compiler Error C2617 (Windows CE 5.0)

Send Feedback

'function' : inconsistent return statement

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

The following example shows ways this error might occur.

int i;
func()                   // no return type prototype
{
   if( i ) return;       // no return value
   else return( 1 );     // error detected on this line
}

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.