incorrect warning about uninitialized pointer
Original Reporter info from Mantis: skalogryyz
-
Reporter name: Dmitry Boyarintsev
Original Reporter info from Mantis: skalogryyz
- Reporter name: Dmitry Boyarintsev
Description:
program Project1;
{$mode objfpc}{$H+}
type
TRec = record a : Integer; end;
PRec = ^TRec;
var
p : PRec;
begin
writeln( sizeof(p^.a)); // warning here!
end.
// project1.pas(12,19) Warning: Variable "p" does not seem to be initialized
The structure TRec is known, size of Integer is known.
Is it possible to get rid of this warning?
Mantis conversion info:
- Mantis ID: 14347
- Fixed in version: 3.0.0