Werner Zeh (werner.zeh@siemens.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/13776
-gerrit
commit 86ae5e468390662cedca53fc80b6a14e8187abf8 Author: Werner Zeh werner.zeh@siemens.com Date: Wed Feb 24 08:50:37 2016 +0100
cbfs: Fix compiler error for gcc versions < 4.6
The missing braces for access to a union member cause an error on gcc versions < 4.6.
Change-Id: I7de14a6d89219f5376f4f969adecfe8014a5a9d8 Signed-off-by: Werner Zeh werner.zeh@siemens.com --- src/commonlib/lz4_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/commonlib/lz4_wrapper.c b/src/commonlib/lz4_wrapper.c index ea7b90d..7699cc8 100644 --- a/src/commonlib/lz4_wrapper.c +++ b/src/commonlib/lz4_wrapper.c @@ -149,7 +149,7 @@ size_t ulz4fn(const void *src, size_t srcn, void *dst, size_t dstn) }
while (1) { - struct lz4_block_header b = { .raw = read_le32(in) }; + struct lz4_block_header b = { { .raw = read_le32(in) } }; in += sizeof(struct lz4_block_header);
if ((size_t)(in - src) + b.size > srcn)