mb/prodrive/atlas/vpd.c: Replace union {0} initializers with {} for C23 compliance

This change addresses GCC-15 behavior where {0} union initializers only
clear the first member, leaving padding bits uninitialized. The new {}
initializer ensures full union clearing as required by C23.

Change-Id: I1d2761856e0c9bf9cc7045cc8e3af622582bd1ed
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/88860
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Elyes Haouas 2025-08-19 18:42:55 +02:00
commit 5de5b519ca

View file

@ -19,7 +19,7 @@ const struct emi_eeprom_vpd *get_emi_eeprom_vpd(void)
static union {
struct emi_eeprom_vpd layout;
uint8_t raw[sizeof(struct emi_eeprom_vpd)];
} vpd = {0};
} vpd = {};
/* Check if cached VPD is valid */
if (vpd.layout.header.revision == VPD_LATEST_REVISION)