-
Notifications
You must be signed in to change notification settings - Fork 8.2k
drivers: comparator: Silence GCC 14 uninitialized variable warning. #98602
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: comparator: Silence GCC 14 uninitialized variable warning. #98602
Conversation
soburi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Message prefix is shuold better as drivers: comparator: .
When the renesas-rv-lvd driver is built with SDK 1.0 using GCC 14, the compiler emits a spurious uninitialized variable warning because it can't follow the control flow to figure out that the variable wasn't ever used without being initialized. Work around this by simply initializing it to one of the valid values. Signed-off-by: Keith Packard <[email protected]>
c3e9071 to
93c4109
Compare
|
|
@keith-packard - can you please link a bug report to this PR? It's required past RC2 |
It only fails with SDK 1.0, not SDK 0.17, so I'm not sure this should be considered for 4.3? |



When the renesas-rv-lvd driver is built with SDK 1.0 using GCC 14, the compiler emits a spurious uninitialized variable warning because it can't follow the control flow to figure out that the variable wasn't ever used without being initialized. Work around this by simply initializing it to one of the valid values.