Get rid of unused variable compiler warnings.

Merged Markus Blatt requested to merge feature/shut-up-compiler-warnings into master

... to ease live of downstream developers turning these warnings on.

Merge request reports