-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Coverity changes in USBMSD.cpp #11452
Conversation
@Tharazi97, thank you for your changes. |
@Tharazi97 Can you please add the exact text of the Coverity issue you are addressing in the description? |
"uninit_member: Non-static class member _addr is not initialized in this constructor nor any functions that it calls.". Same for other variables. |
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.
The module seems to adopt a pattern where simple member initialization in the member initializer list and more complex one in the _init()
, init()
, and connect()
method.
Can you please move these initialization to the member initializer list for consistency?
b5261d0
to
d592b8c
Compare
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.
LGTM
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Added initialization of variables, so the coverity doesn't produce an error. The variables are later redefined by other functions like
connect()
.Pull request type
Reviewers
@jamesbeyond @maciejbocianski
Release Notes