Michael Chang 3ce13d974b lib/reed_solomon: Fix array subscript 0 is outside array bounds
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 <mchang@suse.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2022-04-20 18:29:00 +02:00
..
2011-05-13 16:36:05 +02:00
2017-05-08 20:53:28 +02:00
2022-03-14 15:47:13 +01:00
2010-08-30 00:54:15 +02:00
2022-03-14 15:47:13 +01:00
2022-03-14 15:47:13 +01:00
2021-12-23 01:05:34 +01:00
2022-03-14 15:47:13 +01:00
2022-03-14 15:47:13 +01:00
2019-02-25 11:28:44 +01:00
2016-10-27 16:22:06 +02:00
2022-03-21 18:50:13 +01:00
2022-03-14 15:47:13 +01:00
2011-07-05 20:24:20 +02:00
2022-03-14 15:47:13 +01:00
2019-03-25 15:14:52 +01:00
2012-02-26 18:09:07 +01:00
2022-03-14 15:47:13 +01:00
2013-12-18 05:28:05 +01:00
2016-02-12 12:39:38 +01:00
2022-03-14 15:47:13 +01:00
2021-09-20 13:52:20 +02:00