You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/24 13:48:19 UTC

[GitHub] kasjer opened a new pull request #1422: hw/drivers/i2c/i2cn: Remove false positive warning

kasjer opened a new pull request #1422: hw/drivers/i2c/i2cn: Remove false positive warning
URL: https://github.com/apache/mynewt-core/pull/1422
 
 
   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.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services