You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 MM:
fsw/src/mm_dump.c:50:25: style: Variable 'Valid' is assigned a value that is never used. [unreadVariable]
bool Valid = true;
^
fsw/src/mm_dump.c:190:40: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_SUCCESS;
^
fsw/src/mm_dump.c:573:11: style: Unused variable: PSP_Status [unusedVariable]
int32 PSP_Status;
^
fsw/src/mm_load.c:296:40: style: Variable 'ComputedCRC' is assigned a value that is never used. [unreadVariable]
uint32 ComputedCRC = 0;
^
fsw/src/mm_load.c:366:42: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_SUCCESS;
^
fsw/src/mm_mem16.c:54:28: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem16.c:55:28: style: Variable 'ReadLength' is assigned a value that is never used. [unreadVariable]
int32 ReadLength = 0;
^
fsw/src/mm_mem16.c:138:28: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_ERROR;
^
fsw/src/mm_mem16.c:140:28: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem16.c:223:31: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem16.c:227:31: style: Variable 'NewBytesRemaining' is assigned a value that is never used. [unreadVariable]
uint32 NewBytesRemaining = 0;
^
fsw/src/mm_mem32.c:54:28: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem32.c:55:28: style: Variable 'ReadLength' is assigned a value that is never used. [unreadVariable]
int32 ReadLength = 0;
^
fsw/src/mm_mem32.c:138:28: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_ERROR;
^
fsw/src/mm_mem32.c:140:28: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem32.c:224:31: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem32.c:228:31: style: Variable 'NewBytesRemaining' is assigned a value that is never used. [unreadVariable]
uint32 NewBytesRemaining = 0;
^
fsw/src/mm_mem8.c:54:27: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem8.c:55:27: style: Variable 'ReadLength' is assigned a value that is never used. [unreadVariable]
int32 ReadLength = 0;
^
fsw/src/mm_mem8.c:138:27: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_ERROR;
^
fsw/src/mm_mem8.c:140:27: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_mem8.c:223:27: style: Variable 'i' is assigned a value that is never used. [unreadVariable]
uint32 i = 0;
^
fsw/src/mm_utils.c:505:21: style: Variable 'OS_Status' is assigned a value that is never used. [unreadVariable]
int32 OS_Status = OS_SUCCESS;
^
##[error]Process completed with exit code 255.
To Reproduce
Run the current version of Cppcheck on the current main branch MM source code.
Expected behavior
Cppcheck should run without errors.
Checklist
Describe the bug
Latest version of Cppcheck is issuing the following failures for MM:
To Reproduce
Run the current version of Cppcheck on the current main branch MM source code.
Expected behavior
Cppcheck should run without errors.
Reporter Info
Avi @thnkslprpt
The text was updated successfully, but these errors were encountered: