summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-07-30 12:57:02 +0200
committerJakub Czapiga <jacz@semihalf.com>2023-08-01 12:56:06 +0000
commit39aee649da164935f28f360fce91a4470a245195 (patch)
tree86746e5906b8793f0709669590a1da9a8d9ae82b /src
parenta4aa169aab5a621edaabb6b40d1b761bdb92b1f2 (diff)
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 <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76812 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/vendorcode/google/chromeos/vpd_calibration.c2
1 files changed, 1 insertions, 1 deletions
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. */
};