Files
OpenCellular/util
Martin Roth 7d1114f42e cbi-util: Help GCC determine that variable is initialized
GCC 6.3 can't tell that we enforce the variable 'size' being set,
so initialize it to 0 to make the warning go away.  The code does
actually verify that size is set, but not by checking the size
variable itself.

util/cbi-util.c: In function 'main':
util/cbi-util.c:139:8: error: 'size' may be used uninitialized in this
function [-Werror=maybe-uninitialized]
buf = malloc(size);
        ^~~~~~~~~~~~
util/cbi-util.c:233:11: note: 'size' was declared here
uint32_t size;
           ^~~~

BUG=b:72609872
BRANCH=None
TEST=Build with coreboot toolchain.

Change-Id: Ide41a0fce40254f2fa3a8626dec75840a728d967
Signed-off-by: Martin Roth <martinroth@google.com>
Reviewed-on: https://chromium-review.googlesource.com/890703
Commit-Ready: Martin Roth <martinroth@chromium.org>
Tested-by: Martin Roth <martinroth@chromium.org>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
2018-02-05 19:08:58 -08:00
..
2017-03-01 05:04:04 -08:00
2016-06-02 17:02:51 -07:00
2018-02-05 20:30:37 +00:00
2018-01-18 05:09:30 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2018-01-23 05:25:08 -08:00
2013-07-01 16:14:16 -07:00
2015-06-18 19:07:00 +00:00
2015-12-08 12:28:57 -08:00
2016-02-10 18:19:24 -08:00
2012-11-01 14:09:34 -07:00
2016-02-05 06:02:49 -08:00
2014-02-17 17:35:43 +00:00
2017-06-28 21:50:50 -07:00
2017-09-15 08:46:32 -07:00
2016-02-05 06:02:49 -08:00