Fix compiler warnings

Fix a two compiler warnings and remove an unused parameter in `rugged_exception_raise `.