cbfstool: guard _Static_assert
This isn't required for correct execution, and doesn't need to be tested on every single compiler out there. Since GCC < 4.5 has no idea about _Static_assert, hide it there. Our build tests will make sure that the test is run before changes are submitted to master. Change-Id: I4141f4aa23b140d2d1017ca7b4dace5aa7db0c04 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/11475 Tested-by: build bot (Jenkins) Reviewed-by: Werner Zeh <werner.zeh@siemens.com> Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
This commit is contained in:
parent
23aeaff41b
commit
57c67e5aa5
|
@ -88,7 +88,9 @@ struct cbfs_file {
|
|||
char filename[];
|
||||
} __PACKED;
|
||||
|
||||
#if defined __GNUC__ && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405
|
||||
_Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch");
|
||||
#endif
|
||||
|
||||
/* The common fields of extended cbfs file attributes.
|
||||
Attributes are expected to start with tag/len, then append their
|
||||
|
|
Loading…
Reference in New Issue