fixed unused variable warnings

Hi,

building the current HEAD of your master branch failed for me due to "unused variable" warnings.
Without deeper knowledge of the code, I assume this patch shouldn't break anything and avaoid the warnings.

Greetings
Moritz