Skip to content

cFE files make variable assignments that prove to be useless #2880

Closed

Description

@myc-yang

Describe the bug
cFE source files make variable assignments that are overwritten regardless later on in the code, particularly during variable declaration and initialization.

To Reproduce
Detected by Static Code Analysis

Expected behavior
Code should adhere to MISRA C++:2008 Rule 0-1-6 - A project shall not contain instances of non-volatile variables being given values that are never subsequently used.

Code snips
If applicable, add references to the software.

System observed on:

  • Hardware: PC
  • OS: Linux

Additional context
Add any other context about the problem here.

Reporter Info
Michael Yang / NASA/GSFC

Activity

  1. self-assigned this
    on Oct 22, 2026
  2. added 2 commits that reference this issue on Oct 23, 2026
    e4e0034
    ac5dd04
  3. added a commit that references this issue on Oct 27, 2026
    1f16407
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions