Files
OpenCellular/chip/g
Martin Roth ec5c396b47 i2cs.c: Initialize variable to fix GCC warnings
word_in_value shouldn't be able to be used without being initialized,
so just initialize it to make GCC 5.3 happy.  It's configured separately
in the (last_write_pointer & 3) and (!(last_write_pointer & 3)) paths,
so it can't actually slip through uninitialized.

There is probably a way to rwrite this that won't confuse GCC as much,
but I haven't found it yet.  The solutions I did try generally ended
up increasing the binary size, so I'm falling back to just initializing
the variable.

chip/g/i2cs.c: In function '_i2cs_write_complete_int':
chip/g/i2cs.c:178:19: error: 'word_in_value' may be used uninitialized
in this function [-Werror=maybe-uninitialized]

This does not change the size of any ec.*.flat file.

BRANCH=none
BUG=none
TEST=build succeeds under GCC 4.9.2, 5.3 and 6.2

Change-Id: Iaf8641b3d252c494ad13fbeb8ad8ece3cdfe6e76
Signed-off-by: Martin Roth <martinroth@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/403504
Reviewed-by: Shawn N <shawnn@chromium.org>
2016-12-16 15:42:16 -08:00
..
2016-12-13 23:49:39 -08:00
2016-04-29 16:07:13 -07:00
2016-11-04 18:31:44 -07:00
2016-11-04 18:31:44 -07:00
2016-11-04 18:31:44 -07:00
2016-02-01 21:17:22 +00:00
2016-11-18 20:07:06 -08:00
2016-11-28 20:55:02 -08:00
2016-10-14 01:02:13 -07:00
2016-11-04 18:31:44 -07:00
2016-11-15 17:41:53 -08:00
2016-07-13 19:09:19 -07:00
2016-12-12 21:03:37 -08:00
2016-11-28 20:53:53 -08:00
2015-04-02 20:27:46 +00:00
2016-10-22 00:01:02 +00:00
2016-11-15 17:41:53 -08:00