Fix some "unused variable" warnings.

I did it not to obfuscate the function signature. It *is* used on the platforms that support the functionality. But I have no strong preference, so I can change it if you think that's better.