Fixed some unused parameters warnings

They cause problems when using -Werror in your compilation.