On Thu, Mar 17, 2022 at 02:43:42PM +0800, Michael Chang via Grub-devel wrote: > The grub_absolute_pointer() is a compound expression that can only work > within a function. We are out of luck here when the pointer variables > require global definition due to ATTRIBUTE_TEXT that have to use fully > initialized global definition because of the way linkers work. > > static gf_single_t * const gf_powx ATTRIBUTE_TEXT = (void *) 0x100000; > > For the reason given above, use gcc diagnostic pragmas to suppress the > array-bounds warning. > > Signed-off-by: Michael Chang <[email protected]>
Reviewed-by: Daniel Kiper <[email protected]> Daniel _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
