function, Does void x() need

If the function is supposed to return void, then it should not have a return statement

Wrong.
A void function can have a "return;"