Micha Nelissen wrote 10 lines
wrote:
> The "Parameter X not used" hint is specially annoying in the case you use
> many callback functions like the used in LCL (TNotifyEvent and alike).
>
Perhaps it's an idea to not show this hint by default for methods
declared in the published section of a class ? Most likely they are
callbacks.
It would be good but i don't know if this is possible. In the Lazarus situation, the procedure (event) is added to the public section, so fpc can not know if is assigned to a published property or not.
The original idea was a local directive like {$PARAMETER_HINT +/-} or (a bit overkill/superfluous) {$IGNORE_PARAMETER [name of parameter]}
Luiz