[Lazarus] About a warning of unused parameter.
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed May 2 08:04:51 CEST 2018
On Wed, 2 May 2018 02:19:05 +0200
"Carlos E. R. via Lazarus" <lazarus at lists.lazarus-ide.org> wrote:
>[...]
> function TPINGSend.Checksum6(Value: AnsiString): Word;
> begin
> Result := 0;
> end;
You can:
a) add a dummy statement: if Value='' then ;
b) add an IDE directive: right click on this message in the Lazarus
Messages window, Hide message by inserting IDE directive
Mattias>
> I see on the contextual menu of the warning that I can silence that
> warning type on a file (all warnings of that type in that file, not just
> the ones I know about):
>
> {$WARN 5024 off : Parameter "$1" not used}
>
> Lazarus writes "on"; tried both. Neither work, the warning still appears.
It should be "off". I fixed that in trunk.
Mattias
More information about the Lazarus
mailing list