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

Cppcheck unread variable errors in hs_monitor.c #73

Closed
2 tasks done
jphickey opened this issue Feb 22, 2023 · 0 comments · Fixed by #72
Closed
2 tasks done

Cppcheck unread variable errors in hs_monitor.c #73

jphickey opened this issue Feb 22, 2023 · 0 comments · Fixed by #72

Comments

@jphickey
Copy link
Contributor

Checklist (Please check before submitting)

  • 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
Cppcheck is currently reporting the following style issues:

severity location error id issue
style fsw/src/hs_monitors.c:641 unreadVariable Variable 'EntryResult' is assigned a value that is never used.
style fsw/src/hs_monitors.c:643 unreadVariable Variable 'ResourceType' is assigned a value that is never used.
style fsw/src/hs_monitors.c:644 unreadVariable Variable 'NullTerm' is assigned a value that is never used.

To Reproduce
Run Cppcheck workflow

Expected behavior
Should run clean

System observed on:
Github hosted runner

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey changed the title Cppcheck unused variable errors in hs_monitor.c Cppcheck unread variable errors in hs_monitor.c Feb 22, 2023
@jphickey jphickey added the bug label Feb 22, 2023
jphickey added a commit to jphickey/HS that referenced this issue Feb 22, 2023
Do not assign a value to variables where a value is assigned later and
the first value is never read.
jphickey added a commit to jphickey/HS that referenced this issue Feb 22, 2023
Do not assign a value to variables where a value is assigned later and
the first value is never read.
@jphickey jphickey mentioned this issue Feb 22, 2023
2 tasks
jphickey added a commit to jphickey/HS that referenced this issue Feb 22, 2023
Do not assign a value to variables where a value is assigned later and
the first value is never read.
jphickey added a commit to jphickey/HS that referenced this issue Feb 23, 2023
Do not assign a value to variables where a value is assigned later and
the first value is never read.
dzbaker added a commit that referenced this issue Feb 23, 2023
Fix #69, Fix #73, remove conditional compiles from code
@dmknutsen dmknutsen added this to the Equuleus milestone May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants