[fpc-pascal] Initialization of packed record local variables?

Bo Berglund bo.berglund at gmail.com
Mon Jul 18 20:52:33 CEST 2016


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?

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?

(FPC 3.0 and Lazarus 1.6 on Raspberry Pi3)

-- 
Bo Berglund
Developer in Sweden




More information about the fpc-pascal mailing list