Skip to content

New Cppcheck errors: '[unreadVariable]' #63

@thnkslprpt

Description

@thnkslprpt

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 SC:

fsw/src/sc_cmds.c:62:35: style: Variable 'TempAtsChar' is assigned a value that is never used. [unreadVariable]
    char              TempAtsChar = ' ';
                                  ^
fsw/src/sc_loads.c:388:31: style: Variable 'IndexDelta' is assigned a value that is never used. [unreadVariable]
    uint16         IndexDelta = 0;
                              ^

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

Expected behavior
Cppcheck should pass without raising any errors.

Reporter Info
Avi @thnkslprpt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions