Small pull request to fix warnings.

Warning: Return has value, in function returning void.