Fix warnings on return.