Remove unused variables, so compiling with errors upgraded to warnings succeeds.