diff options
author | Patrick Georgi <pgeorgi@google.com> | 2015-09-01 18:20:20 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-09-01 16:30:24 +0000 |
commit | ab5754da6639f51ee2aec796f832ce4e3b164f82 (patch) | |
tree | f7391b3e4621e089d822109997a3a13164b78856 /util/cbfstool | |
parent | 57c67e5aa52426ee8665bc6e0706ac2abf625a13 (diff) | |
download | coreboot-ab5754da6639f51ee2aec796f832ce4e3b164f82.tar.xz |
cbfstool: off-by-one on the gcc version that provides _Static_assert
According to https://gcc.gnu.org/gcc-4.6/changes.html it's only in gcc 4.6,
not 4.5, which I mistakenly believed.
Change-Id: I8212e7921bd9d1436a0ba491cbe6c4d473228956
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: http://review.coreboot.org/11476
Reviewed-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Tested-by: build bot (Jenkins)
Diffstat (limited to 'util/cbfstool')
-rw-r--r-- | util/cbfstool/cbfs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/cbfstool/cbfs.h b/util/cbfstool/cbfs.h index d1b97c51a0..f738c60147 100644 --- a/util/cbfstool/cbfs.h +++ b/util/cbfstool/cbfs.h @@ -88,7 +88,7 @@ struct cbfs_file { char filename[]; } __PACKED; -#if defined __GNUC__ && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405 +#if defined __GNUC__ && (__GNUC__ * 100 + __GNUC_MINOR__) >= 406 _Static_assert(sizeof(struct cbfs_file) == 24, "cbfs_file size mismatch"); #endif |