summaryrefslogtreecommitdiff
path: root/src/commonlib
diff options
context:
space:
mode:
authorWerner Zeh <werner.zeh@siemens.com>2016-02-24 08:50:37 +0100
committerWerner Zeh <werner.zeh@siemens.com>2016-02-25 06:17:52 +0100
commit116485a6343c24452f491fc67a342ddfe0f3a167 (patch)
treeb8f83e5b622d73d1e56b5e37e50bee7e3e7a2648 /src/commonlib
parent8b831da586ef69be790deee1602ea08edad5415a (diff)
downloadcoreboot-116485a6343c24452f491fc67a342ddfe0f3a167.tar.xz
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> Reviewed-on: https://review.coreboot.org/13776 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/commonlib')
-rw-r--r--src/commonlib/lz4_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commonlib/lz4_wrapper.c b/src/commonlib/lz4_wrapper.c
index 1a765af06d..bb59f2822c 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)