Fix some warnings for not used variables.