Fix incorrect unused parameter warnings in function types