code: Fix a few 'comparison between signed and unsigned' warnings.
code: More 'unused parameter' warnings fixing.

Unused parameter wrapped with the UNUSED(...) macro.