Thanks for your reply José, but what is the philosophy behind the solution? and What are the reasons for $PUSH and $POP? Also, I tried to remove the $HINTS directive, and it worked fine without it. Could you explain this?
----- Original Message ---- From: José Mejuto <joshy...@gmail.com> Subject: Re: [fpc-pascal] Initializing a record-type variable to get rid of the false-positive compiler hint BA> Supposing I have a record-type variable, could someone here BA> tell me how to initialize it properly so that FPC could notice the BA> initialization, since the FillByte() and FillChar() way do not BA> cause FPC aware of it? I'm using: procedure InitRecord(out Rec; const ASize: SizeUint); begin {$PUSH} {$HINTS OFF} FillByte(Rec,ASize,0); {$POP} end; Unfortunatly it can not be inlined :( due the formal parameter. -- Best regards, José _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal