Got rid of some compiler warnings

Unused variables, void functions and the like.