'identifier' : 'void' function returning a value
The function is declared as void but returns a value.
Possible cause
Possible solutions
The following sample generates C2562:
void testfunc() { int i; return i; // C2562, delete the return to resolve the error } int main() { }