fix warning reg. unused variable
Merge pull request #1102 from Jojo-Schmitz/warnings

fix warning reg. unused variable