Remove unused variables found by gcc-4.6's -Wunused-but-set-variable.