[fpc-devel] Omit hint/warning for a fixed-size array
Michael Van Canneyt
michael at freepascal.org
Fri Aug 31 14:50:53 CEST 2018
On Fri, 31 Aug 2018, wkitty42 at windstream.net wrote:
> On 08/30/2018 03:46 AM, Ondrej Pokorny wrote:
>> Hello,
>>
>> is there a way not to get a "Variable xyz does not seem to be initialized"
>> hint/warning for a fixed-size array?
>>
>> program Project1;
>> uses Classes;
>> var
>> Buffer: array[0..255] of Byte;
>
> what about
>
> Buffer: array[0..255] of Byte = [0];
No, you would need to suppply the full amount of elements.
Michael.
More information about the fpc-devel
mailing list