CF Unused type declarations
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 72/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- c
- Domain
- embedded-iot
Research direction
Start with the five locations listed in config/default_cf_msgdefs.h, fsw/src/cf_utils.c, fsw/src/cf_cfdp_dispatch.h, and fsw/src/cf_cfdp_types.h, then run the project's static analysis tools. Check each reported typedef against its scope and remove or otherwise address only the unused type declarations. Done means the listed MISRA2012:2.3 findings are resolved without introducing new analysis issues.
Written by the indexing model from the issue text.
Description
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
The static code analysis tools found several instances where a typedef statement defines a type that is not used anywhere in the scope of the typedef.
To Reproduce
Run static analysis tools.
Expected behavior
Code should adhere to Misra2012:2.3: A project should not contain unused type declarations.
Code snips
https://github.com/nasa/CF/blob/6b2ebd22bcf017bd0aabc7428efda5b36719e743/config/default_cf_msgdefs.h#L45
https://github.com/nasa/CF/blob/6b2ebd22bcf017bd0aabc7428efda5b36719e743/fsw/src/cf_utils.c#L45
https://github.com/nasa/CF/blob/6b2ebd22bcf017bd0aabc7428efda5b36719e743/fsw/src/cf_cfdp_dispatch.h#L41
https://github.com/nasa/CF/blob/6b2ebd22bcf017bd0aabc7428efda5b36719e743/fsw/src/cf_cfdp_dispatch.h#L65
https://github.com/nasa/CF/blob/6b2ebd22bcf017bd0aabc7428efda5b36719e743/fsw/src/cf_cfdp_types.h#L384
System observed on:
- Hardware: PC
- OS: Linux
Additional context
N/A
Reporter Info
José Lombay-González / NASA GRC
- Dominant language
- C
- Stars
- 123
- Forks
- 82
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nasa/CF
-
CF_CFDP_S_SendFileData computes the file checksum from the SB buffer after CFE_SB_TransmitBufferOpen
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Assert checks non-existent variable (`pt`) in `CF_CFDP_ProcessPlaybackDirectory()`May be free again A pull request for this issue was closed without being merged. Openinvalid
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Similar issues
-
needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
389ds/389-ds-base#8251 ·
Maintainers usually reply within 1 day
-
bug data-types
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
ClickHouse/clickhouse-cpp#645 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ROCm/hrx-system#3628 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
OpenPrinting/cups#1844 ·
Maintainers usually reply within 1 day