On 25/06/2019 19:19, Ben Grasset wrote: > On Mon, Jun 24, 2019 at 12:41 AM Michael Van Canneyt > <mich...@freepascal.org <mailto:mich...@freepascal.org>> wrote: > > If you want to get rid of warnings, define it as > LOGPALETTE = record > palVersion : WORD; > palNumEntries : WORD; > palPalEntry : array[0..(MAXINT div sizeof(PALETTEENTRY)] of > PALETTEENTRY; > end; > > > Wouldn't that explicitly make the LOGPALETTE type unavoidably gigantic, > though?
Yes, but whether it's an array declared with 1 element or with (MAXINT div sizeof(PALETTEENTRY) element, you will never declare an actual variable that has this type. You will always use pointers to this type. Jonas _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel