summaryrefslogtreecommitdiff
path: root/util/cbfstool/cbfs-mkpayload.c
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@chromium.org>2018-07-19 17:33:57 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-07-20 16:06:29 +0000
commit71955a5b3fff71ee56600fb4345f343187faf24b (patch)
tree13f3fded979fdbce021936e90540591561bcc13c /util/cbfstool/cbfs-mkpayload.c
parent109faa6719b000db5096539ecee16b625e0d2f0c (diff)
util/cbfstool: fix build with clang
Without the second set of braces it fails (due to -Werror) with "suggest braces around initialization of subobject" Change-Id: I63cb01dd26412599551ee921c3215a4aa69f4e17 Signed-off-by: Patrick Georgi <pgeorgi@chromium.org> Reviewed-on: https://review.coreboot.org/27551 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util/cbfstool/cbfs-mkpayload.c')
-rw-r--r--util/cbfstool/cbfs-mkpayload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/cbfstool/cbfs-mkpayload.c b/util/cbfstool/cbfs-mkpayload.c
index 8464a2bbb9..d6c10adc7e 100644
--- a/util/cbfstool/cbfs-mkpayload.c
+++ b/util/cbfstool/cbfs-mkpayload.c
@@ -250,7 +250,7 @@ int parse_flat_binary_to_payload(const struct buffer *input,
enum comp_algo algo)
{
comp_func_ptr compress;
- struct cbfs_payload_segment segs[2] = {0};
+ struct cbfs_payload_segment segs[2] = { {0} };
int doffset, len = 0;
compress = compression_function(algo);
@@ -295,7 +295,7 @@ int parse_fv_to_payload(const struct buffer *input, struct buffer *output,
enum comp_algo algo)
{
comp_func_ptr compress;
- struct cbfs_payload_segment segs[2] = {0};
+ struct cbfs_payload_segment segs[2] = { {0} };
int doffset, len = 0;
firmware_volume_header_t *fv;
ffs_file_header_t *fh;