Re: [PATCH] i2c: core: Fix compiler warning in i2c_generic_scl_recovery

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 24-04-19 18:03, Wolfram Sang wrote:
On Thu, Apr 04, 2019 at 03:03:06PM +0200, Hans de Goede wrote:
The compiler is not smart enough to figure out that ret will always
be assiged a value in the while loop. Explicitly init ret, fixing:

Wouldn't it be proper to file a bug report with your compiler then?

Giving the complexity of the while-loop and the conditions under which
ret are set, no I don't think this is a compiler bug.

Note I'm seeing this with gcc-9.0.1, I've no idea why earlier gcc
versions did not hit this.

Regards,

Hans



[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux