Re: [PATCH] hwmon: (w83795) Silent false warning from gcc

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

 



On Sun, Dec 19, 2010 at 06:43:32AM -0500, Jean Delvare wrote:
> The code triggers a false warning with older versions of gcc:
> w83795.c: In function 'w83795_update_device':
> w83795.c:475: warning: 'lsb' may be used uninitialized in this function
> 
> I admit that the code is a little tricky, but I see no way to write it
> differently without hurting performance. So let's just silent the
> warning with a needless initialization.
> 
> Signed-off-by: Jean Delvare <khali@xxxxxxxxxxxx>

Acked-by: Guenter Roeck <guenter.roeck@xxxxxxxxxxxx>

_______________________________________________
lm-sensors mailing list
lm-sensors@xxxxxxxxxxxxxx
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors


[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux