From: Simon Que <hidden> Date: 2013-01-17 21:03:06
This variable is initialized conditionally, based on whether a wiimote
call succeeds. However, the logic is not obvious to the compiler so it
throws a warning. Eliminate the warning by initializing "size" to 0.
The warning is:
files/drivers/hid/hid-wiimote-debug.c:69:18: warning: 'size' may be used
uninitialized in this function [-Wmaybe-uninitialized]
Signed-off-by: Simon Que <redacted>
---
drivers/hid/hid-wiimote-debug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
From: David Herrmann <hidden> Date: 2013-01-17 21:07:47
Hi Simon
On Thu, Jan 17, 2013 at 10:02 PM, Simon Que [off-list ref] wrote:
This variable is initialized conditionally, based on whether a wiimote
call succeeds. However, the logic is not obvious to the compiler so it
throws a warning. Eliminate the warning by initializing "size" to 0.
The warning is:
files/drivers/hid/hid-wiimote-debug.c:69:18: warning: 'size' may be used
uninitialized in this function [-Wmaybe-uninitialized]
Thanks!
Signed-off-by: David Herrmann <redacted>
quoted hunk
Signed-off-by: Simon Que <redacted>
---
drivers/hid/hid-wiimote-debug.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
This variable is initialized conditionally, based on whether a wiimote
call succeeds. However, the logic is not obvious to the compiler so it
throws a warning. Eliminate the warning by initializing "size" to 0.
The warning is:
files/drivers/hid/hid-wiimote-debug.c:69:18: warning: 'size' may be used
uninitialized in this function [-Wmaybe-uninitialized]