fix couple of compilation warnings

```
../rugged_repo.c:1080:1: warning: control reaches end of non-void function [-Wreturn-type]
../rugged_repo.c:177:6: warning: unused variable ‘error’ [-Wunused-variable]
```