Fixed some strict compiler issues

Changed the return value of types that are supposed to not return any
value. Also removed an unused variable that was re-added when merging
the vision branch.