[fpc-pascal] SetLength warnings - request

Yuriy Sydorov jura at cp-lab.com
Sat Dec 29 16:34:51 CET 2018

On 29.12.2018 16:19, Benito van der Zander wrote:
> Hi,
>> even if there's closed issue https://bugs.freepascal.org/view.php?id=34169 I would like to ask if it can be reconsidered.
>> The subject is that SetLength now gives warning: Variable "dynamic array" of a managed type does not seem to be 
>> initialized
>> in 3.3.1 and 3.1.1 while it doesn't give any warning in stable 3.0.4
> seriously that is such a bullshit warning.
> SetLength is called to initialize the variable, of course the variable is not initialized before. If it was initialized, 
> we might not even need to call SetLength

The current FPC trunk issues only a hint for the SetLength().


More information about the fpc-pascal mailing list