Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread Thorsten Engler
Perhaps: var Buffer: array[0..255] of Byte = Default; could be supported as shortcut for: type TByteBuffer = array[0..255] of Byte; var Buffer : TByteBuffer; begin Buffer := Default(TByteBuffer); > -Original Message- > From: fpc-devel On Behalf > Of wkitt...@windstream.net

Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread wkitty42
On 08/31/2018 08:50 AM, Michael Van Canneyt wrote: On Fri, 31 Aug 2018, wkitt...@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

Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread Michael Van Canneyt
On Fri, 31 Aug 2018, wkitt...@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;

Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread wkitty42
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]; wo

Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread Ondrej Pokorny
On 31.08.2018 11:24, Michael Van Canneyt wrote: On Thu, 30 Aug 2018, 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;   FS: TFileSt

Re: [fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread Michael Van Canneyt
On Thu, 30 Aug 2018, 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;   FS: TFileStream; begin   // FillByte(Buffer, Length(Buffe

[fpc-devel] Omit hint/warning for a fixed-size array

2018-08-31 Thread Ondrej Pokorny
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;   FS: TFileStream; begin   // FillByte(Buffer, Length(Buffer), 0); // project1.lpr(9,18) Hint: Variable "