From f7926461da1b080d78860dd5c9fba6cb8452dbd6 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Fri, 28 Jul 2023 06:07:35 +0200 Subject: drivers/intel/fsp2_0/fsp_timestamp.c: 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: I03c21e180e9e399e5cb451bf3b9cfb6484cab68b Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/76778 Reviewed-by: Arthur Heymans Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/drivers/intel/fsp2_0/fsp_timestamp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drivers/intel/fsp2_0/fsp_timestamp.c b/src/drivers/intel/fsp2_0/fsp_timestamp.c index 81272564cf..c3ad331218 100644 --- a/src/drivers/intel/fsp2_0/fsp_timestamp.c +++ b/src/drivers/intel/fsp2_0/fsp_timestamp.c @@ -28,7 +28,7 @@ struct generic_event_record { uint32_t apic_id; uint64_t timestamp; uint8_t guid[16]; - uint8_t string[0]; + uint8_t string[]; } __packed; /* -- cgit v1.2.3