gcc 7.1 when -Og is specified does not see that rc variable
is always initialized.
repos/apache-mynewt-core/hw/util/i2cn/src/i2cn.c:23:12: error: 'rc' may be used 
uninitialized in this function [-Werror=maybe-uninitialized]

This adds initialization. It does not impact optimized builds
since compiler detects that assigning 0 is not needed.

[ Full content available at: https://github.com/apache/mynewt-core/pull/1422 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to