Use UNUSED_PARAM instead of the void casting to suppress unused parameter warnings.