diff options
Diffstat (limited to 'main/alpine-ipxe/gcc-11.patch')
-rw-r--r-- | main/alpine-ipxe/gcc-11.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/main/alpine-ipxe/gcc-11.patch b/main/alpine-ipxe/gcc-11.patch new file mode 100644 index 00000000000..a793cdb18e2 --- /dev/null +++ b/main/alpine-ipxe/gcc-11.patch @@ -0,0 +1,23 @@ +fixes maybe-used-uninitialised errors +--- a/tests/bigint_test.c ++++ b/tests/bigint_test.c +@@ -210,7 +210,7 @@ + static const uint8_t addend_raw[] = addend; \ + static const uint8_t value_raw[] = value; \ + static const uint8_t expected_raw[] = expected; \ +- uint8_t result_raw[ sizeof ( expected_raw ) ]; \ ++ uint8_t result_raw[ sizeof ( expected_raw ) ] = {0}; \ + unsigned int size = \ + bigint_required_size ( sizeof ( value_raw ) ); \ + bigint_t ( size ) addend_temp; \ +--- a/drivers/net/ath/ath5k/ath5k_eeprom.c ++++ b/drivers/net/ath/ath5k/ath5k_eeprom.c +@@ -410,7 +410,7 @@ + { + struct ath5k_eeprom_info *ee = &ah->ah_capabilities.cap_eeprom; + u32 o = *offset; +- u16 val; ++ u16 val = 0; + int ret; + + if (ee->ee_version < AR5K_EEPROM_VERSION_5_0) |