[fpc-pascal] Warning: Variable xxx does not seem to be initialized

Sven Barth pascaldragon at googlemail.com
Tue Dec 31 00:38:22 CET 2013

Am 30.12.2013 20:08 schrieb "Marcos Douglas" <md at delfire.net>:
> Hi,
> I'm using FPC 2.6.2 and {advancedrecords}.
> The compiler shows a warning when I use a record variable. IMO this is
> a bug because record variables need not be initialized, right?

Managed types (strings, interfaces, dynamic arrays) inside a record will
have a valid value (Nil), but other values will he garbage. The compiler
does not check whether a record contains any non-managed fields before
generating the warning.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20131231/c196058b/attachment.html>

More information about the fpc-pascal mailing list