fix warning reg. unused but set variable

introduced in 9d21431c
fix warning reg. unused variable

introduced in 11b9481
Merge pull request #1021 from Jojo-Schmitz/warnings

fix warnings reg. unused (but set) variables