To avoid unused parameter errors, just cast to void:

```
    (void)slot;
```