diff options
author | Elyes Haouas <ehaouas@noos.fr> | 2023-07-28 06:07:35 +0200 |
---|---|---|
committer | Felix Singer <service+coreboot-gerrit@felixsinger.de> | 2023-07-31 04:28:52 +0000 |
commit | f7926461da1b080d78860dd5c9fba6cb8452dbd6 (patch) | |
tree | 0a6be394beb54d322a115e4f7f6fe7c393992670 | |
parent | 242bac0e162ca9a9258f61b0674b0dced5bcc01a (diff) |
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 <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76778
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/drivers/intel/fsp2_0/fsp_timestamp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; /* |