Fix -Wunused-parameter warnings