Compiler Warning (level 1) C4033 (original) (raw)
'function' must return a value
Remarks
The function does not return a value. An undefined value is returned.
Functions that use return without a return value must be declared as type void.
This error is for C language code.
Example
The following example generates C4033:
// C4033.c
// compile with: /W1 /LD
int test_1(int x) // C4033 expected
{
if (x)
{
return; // C4033
}
}