View Issue Details

IDProjectCategoryView StatusLast Update
0038572FPCCompilerpublic2021-03-02 15:27
ReporterMattias Gaertner Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Product Version3.3.1 
Summary0038572: Wrong hint variable not used when passing to an untyped parameter
Descriptionfpc 3.3.1 reports a wrong hint (fpc 3.2.0 does not), when passing a variable to an untyped parameter:
project1.lpr(10,3) Note: Local variable "c" is assigned but never used
Steps To Reproduceprogram project1;

procedure Eat(const buf);
begin

end;

procedure Fly;
var
  c: char;
begin
  c:=#0;
  Eat(c);
end;

begin
  Fly;
end.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-03-02 15:27 Mattias Gaertner New Issue