[Lazarus] Confusing compiler hint on unused parameter

Mattias Gaertner nc-gaertnma at netcologne.de
Tue Feb 17 18:04:07 CET 2015


On Tue, 17 Feb 2015 17:35:17 +0100
Sven Barth <pascaldragon at googlemail.com> wrote:

> Am 17.02.2015 16:58 schrieb "Werner Pamler" <werner.pamler at freenet.de>:
> >
> > 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?
> 
> What compiler version? 

1.4RC1 is built with 2.6.4.

> If 2.6.x please retest with a 3.x version. If it is
> still reproducible then try to reproduce it in a smaller, self contained
> example and report as a bug for FPC.


Mattias




More information about the Lazarus mailing list