Suppress unused parameter in MSVC-friendly way.

Since MSVC doesn't support C99, moved (void) cast statement
after variable declarations.