From 5ebf10730588369dd23dc120f670c6a019287934 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 30 Jul 2023 13:07:18 +0200 Subject: soc/intel/common/mma: Use C99 flexible arrays Use C99 flexible arrays instead of older style of one-element or zero-length arrays. It allows the compiler to generate errors when the flexible array does not occur at the end in the structure. Change-Id: Id19193b960935eeffca8e8db60073321592368fe Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/76836 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/soc/intel/common/mma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/soc/intel/common') diff --git a/src/soc/intel/common/mma.c b/src/soc/intel/common/mma.c index 3314e8e5c5..6501f1147f 100644 --- a/src/soc/intel/common/mma.c +++ b/src/soc/intel/common/mma.c @@ -17,7 +17,7 @@ struct mma_data_container { uint32_t mma_signature; /* "MMAD" */ - uint8_t mma_data[0]; /* Variable size, platform/run time dependent. */ + uint8_t mma_data[]; /* Variable size, platform/run time dependent. */ } __packed; /* -- cgit v1.2.3