From 5de5b519ca8f4470821933ec442987dbad59965f Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Tue, 19 Aug 2025 18:42:55 +0200 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/88860 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) --- src/mainboard/prodrive/atlas/vpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mainboard/prodrive/atlas/vpd.c b/src/mainboard/prodrive/atlas/vpd.c index badbc6e3d1..b2e4a1d1c5 100644 --- a/src/mainboard/prodrive/atlas/vpd.c +++ b/src/mainboard/prodrive/atlas/vpd.c @@ -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)