mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 15:00:27 +02:00
* Make SetLength() to emit hint "Local variable "s" of a managed type does not seem to be initialized" instead of the warning. This change is needed because when calling a regular procedure with a ver parameter of a managed type the hint is generated. Now SetLength() behaves the same.
git-svn-id: trunk@40180 -
This commit is contained in:
parent
bfbe50bc04
commit
1b151df89f
@ -1740,7 +1740,7 @@ implementation
|
||||
{ last param must be var }
|
||||
destppn:=ppn.left;
|
||||
valid_for_var(destppn,true);
|
||||
set_varstate(destppn,vs_written,[vsf_must_be_valid]);
|
||||
set_varstate(destppn,vs_written,[vsf_must_be_valid,vsf_use_hints]);
|
||||
{ first param must be a string or dynamic array ...}
|
||||
isarray:=is_dynamic_array(destppn.resultdef);
|
||||
if not((destppn.resultdef.typ=stringdef) or
|
||||
|
Loading…
Reference in New Issue
Block a user