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

2016-07-18 Thread Bo Berglund
I am getting compile hints "Local variable "" 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 t

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

2016-07-18 Thread Michael Van Canneyt
On Mon, 18 Jul 2016, Bo Berglund wrote: I am getting compile hints "Local variable "" 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

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

2016-07-18 Thread Bo Berglund
On Mon, 18 Jul 2016 21:52:37 +0200 (CEST), Michael Van Canneyt wrote: >> Does not the FPC compiler reserve and zero the memory area of such >> variables? > >No. Does thios mean that the memory is reserved but not cleared or does it mean that memory is not reserved at all? > >> In any case I am

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

2016-07-18 Thread Michael Van Canneyt
On Mon, 18 Jul 2016, Bo Berglund wrote: On Mon, 18 Jul 2016 21:52:37 +0200 (CEST), Michael Van Canneyt wrote: Does not the FPC compiler reserve and zero the memory area of such variables? No. Does thios mean that the memory is reserved but not cleared or does it mean that memory is not