Fix a few -Wunused warnings