[Lazarus] Confusing compiler hint on unused parameter
Mattias Gaertner
nc-gaertnma at netcologne.de
Tue Feb 17 18:01:15 CET 2015
On Tue, 17 Feb 2015 16:54:59 +0100
Werner Pamler <werner.pamler at freenet.de> wrote:
> This compiler message looks strange to me: "tatextelements.pas(177,24)
> Hint: Value parameter "AValue" is assigned but never used". It occurs
> when TAChart is recompiled (see bug report #0027484). Here is the
> corresponding code:
>
> procedure TGenericChartMarks.SetFrame(AValue: _TFramePen);
> begin
> if FFrame = AValue then exit;
> FFrame.Assign(AValue);
> StyleChanged(Self);
> end;
>
> I would say that the parameter "AValue" *is* used. So, what is this hint
> for?
This is a generic class. The compiler does not know at this point what
_TFramePen is. The hint sounds like a compiler bug.
Please report to FPC.
Mattias
More information about the Lazarus
mailing list