Remove unused variables (thanks Vincent Untz).
Remove control reaches end of non-void function" warnings(Thanks Vincent Untz).