fix warning reg. unused variable

introduced in a2c0bf6188
Merge pull request #1037 from Jojo-Schmitz/warnings

fix warning reg. unused variable