fixed warnings about unused variables
Merge pull request #1067 from Magnat12/master

fixed warnings about unused variables