[fpc-devel] Re: [FPC 0008690]: Add option/directive to ignore "Parameter X not used" hint
Luiz Americo Pereira Camara
pascalive at bol.com.br
Mon Apr 16 06:45:16 CEST 2007
Micha Nelissen wrote:
> bugs at freepascal.org 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
More information about the fpc-devel
mailing list