On Mon, 18 Jul 2016, Bo Berglund wrote:

I am getting compile hints "Local variable "<variable name>" does not
seem to be initialized" for a number of variables of packed record
type.

Does not the FPC compiler reserve and zero the memory area of such
variables?

No.


In any case I am using Move() to fill the variables with data from a
binary buffer, maybe the compiler is not smart enough to detect this
and remove the warning?

The compiler has no way of knowing if your move statement initializes the
full record.

Michael.
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to