Fixed compilation warnings.

Suppressed "unused variable" warnings with "(void)var;"