SetLength produces warning 5089 Local variable of a managed type does not seem to be initialized
Original Reporter info from Mantis: Fr0sT
-
Reporter name:
Original Reporter info from Mantis: Fr0sT
- Reporter name:
Description:
FPC rev. 58686 produces warning 5089 if SetLength is called with a local variable and it is the 1st usage of this variable. But is there correct way to avoid it? SetLength was always enough to init a variable.
Steps to reproduce:
procedure test;
var
arr: array of WideChar;
begin
SetLength(arr, 100);
end;
Mantis conversion info:
- Mantis ID: 34169
- Version: 3.1.1
- Monitored by: » Fr0sT (Fr0sT)