[fpc-pascal] Warning "Local variable seems to be not initialized" on dyn array

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Mar 9 17:40:12 CET 2015

On 09 Mar 2015, at 17:25, J├╝rgen Hestermann wrote:

> I get a warning that a local dynamic array variable is not  
> initialized.
> Aren't such managed types initialized by default?
> On http://wiki.freepascal.org/Dynamic_array it says:
> Actually, dynamic arrays are pointers with automatic dereferencing.  
> They are initialized to *nil* automatically.
> So why the warning?

http://bugs.freepascal.org/view.php?id=24601#c75617 (and the comment  
below + use -vq to see warning numbers, and -vmXXXX to block a  
particular warning number).


More information about the fpc-pascal mailing list