Silence compiler warnings for unused variables

As seen by Clang with -Wextra.
This is probably not all of them, but it includes all of the cases that my code
ran into.
Merge pull request #20 from theuni/compiler-warnings

Silence compiler warnings for unused variables