soc/intel/broadwell/include/soc/me.h: 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: I2d65e9dbefc8fa5d8288151995a587f76049c65a Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76837 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
This commit is contained in:
parent
5ebf107305
commit
408232e4bf
|
@ -429,7 +429,7 @@ typedef struct {
|
|||
u8 icc_profile_index;
|
||||
u8 reserved;
|
||||
u32 icc_reg_bundles;
|
||||
icc_address_mask icc_address_mask[0];
|
||||
icc_address_mask icc_address_mask[];
|
||||
} __packed mbp_icc_profile;
|
||||
|
||||
typedef struct {
|
||||
|
|
Loading…
Reference in New Issue