Skip to content
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

New Cppcheck errors: '[unreadVariable]' #62

Closed
2 tasks done
thnkslprpt opened this issue Nov 6, 2022 · 0 comments · Fixed by #64
Closed
2 tasks done

New Cppcheck errors: '[unreadVariable]' #62

thnkslprpt opened this issue Nov 6, 2022 · 0 comments · Fixed by #64
Milestone

Comments

@thnkslprpt
Copy link
Contributor

Checklist

  • I reviewed the Contributing Guide.
  • I performed a cursory search to see if the bug report is relevant, not redundant, nor in conflict with other tickets.

Describe the bug
Latest version of Cppcheck is issuing the following failures for FM:

fsw/src/fm_cmd_utils.c:165:32: style: Variable 'StringLength' is assigned a value that is never used. [unreadVariable]
    int32      StringLength    = 0;
                               ^
fsw/src/fm_tbl.c:74:22: style: Variable 'NameLength' is assigned a value that is never used. [unreadVariable]
    int32 NameLength = 0;
                     ^

To Reproduce
Run the current version of Cppcheck on the current main branch FM source code.

Expected behavior
Cppcheck should pass without raising any errors.

Reporter Info
Avi @thnkslprpt

thnkslprpt added a commit to thnkslprpt/FM that referenced this issue Nov 6, 2022
dzbaker added a commit that referenced this issue Nov 14, 2022
…causing-cppcheck-failure

Fix #62, Remove initializations causing Cppcheck errors
@dmknutsen dmknutsen added this to the Draco milestone Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants