From 39aee649da164935f28f360fce91a4470a245195 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 30 Jul 2023 12:57:02 +0200 Subject: vendorcode/google: 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: I81ae8acb0365af102e513b3d7cfa1a824636eb06 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/76812 Reviewed-by: Felix Singer Tested-by: build bot (Jenkins) --- src/vendorcode/google/chromeos/vpd_calibration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vendorcode/google/chromeos') diff --git a/src/vendorcode/google/chromeos/vpd_calibration.c b/src/vendorcode/google/chromeos/vpd_calibration.c index e5f5b579d1..f66811fe58 100644 --- a/src/vendorcode/google/chromeos/vpd_calibration.c +++ b/src/vendorcode/google/chromeos/vpd_calibration.c @@ -39,7 +39,7 @@ struct calibration_blob { */ struct calibration_entry { uint32_t size; - struct calibration_blob entries[0]; /* A varialble size container. */ + struct calibration_blob entries[]; /* A varialble size container. */ }; -- cgit v1.2.3