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

Fix #52, Remove initializations causing Cppcheck errors #53

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fsw/src/hs_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ void HS_HousekeepingReq(const CFE_SB_Buffer_t *BufPtr)
CFE_ES_TaskInfo_t TaskInfo;
memset(&TaskInfo, 0, sizeof(TaskInfo));
#endif
int32 Status = CFE_SUCCESS;
uint32 TableIndex = 0;
int32 Status;
uint32 TableIndex;

/*
** Verify message packet length
Expand Down
10 changes: 5 additions & 5 deletions fsw/src/hs_custom.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,12 @@ void HS_UtilDiagReport(void)
{
uint32 DiagValue[HS_UTIL_TIME_DIAG_ARRAY_LENGTH];
uint32 DiagCount[HS_UTIL_TIME_DIAG_ARRAY_LENGTH];
uint32 i = 0;
uint32 j = 0;
uint32 ThisValue = 0;
uint32 i = 0;
uint32 j;
uint32 ThisValue;

uint32 Ordinal = 0;
uint32 NewOrdinalIndex = 0;
uint32 Ordinal;
uint32 NewOrdinalIndex;
uint32 OutputValue[HS_UTIL_DIAG_REPORTS];
uint32 OutputCount[HS_UTIL_DIAG_REPORTS];
uint32 OutputOrdinal[HS_UTIL_DIAG_REPORTS];
Expand Down
36 changes: 18 additions & 18 deletions fsw/src/hs_monitors.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
void HS_MonitorApplications(void)
{
CFE_ES_AppInfo_t AppInfo;
CFE_ES_AppId_t AppId = CFE_ES_APPID_UNDEFINED;
int32 Status = CFE_SUCCESS;
uint32 TableIndex = 0;
uint16 ActionType = 0;
CFE_ES_AppId_t AppId = CFE_ES_APPID_UNDEFINED;
int32 Status;
uint32 TableIndex = 0;
uint16 ActionType;
uint32 MsgActsIndex = 0;
CFE_SB_Buffer_t *BufPtr = NULL;

Expand Down Expand Up @@ -222,10 +222,10 @@ void HS_MonitorApplications(void)
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
void HS_MonitorEvent(const CFE_EVS_LongEventTlm_t *EventPtr)
{
uint32 TableIndex = 0;
int32 Status = CFE_SUCCESS;
CFE_ES_AppId_t AppId = CFE_ES_APPID_UNDEFINED;
uint16 ActionType = 0;
uint32 TableIndex = 0;
int32 Status = CFE_SUCCESS;
CFE_ES_AppId_t AppId = CFE_ES_APPID_UNDEFINED;
uint16 ActionType;
uint32 MsgActsIndex = 0;
CFE_SB_Buffer_t *SendPtr = NULL;

Expand Down Expand Up @@ -455,11 +455,11 @@ int32 HS_ValidateAMTable(void *TableData)

int32 TableResult = CFE_SUCCESS;
uint32 TableIndex = 0;
int32 EntryResult = 0;
int32 EntryResult;

uint16 ActionType = 0;
uint16 CycleCount = 0;
uint16 NullTerm = 0;
uint16 ActionType;
uint16 CycleCount;
uint16 NullTerm;

uint32 GoodCount = 0;
uint32 BadCount = 0;
Expand Down Expand Up @@ -546,11 +546,11 @@ int32 HS_ValidateEMTable(void *TableData)

int32 TableResult = CFE_SUCCESS;
uint32 TableIndex = 0;
int32 EntryResult = 0;
int32 EntryResult;

uint16 ActionType = 0;
uint16 EventID = 0;
uint16 NullTerm = 0;
uint16 ActionType;
uint16 EventID;
uint16 NullTerm;

uint32 GoodCount = 0;
uint32 BadCount = 0;
Expand Down Expand Up @@ -731,8 +731,8 @@ int32 HS_ValidateMATable(void *TableData)
int32 TableResult = CFE_SUCCESS;
uint32 TableIndex = 0;
size_t Length = 0;
uint16 EnableState = 0;
int32 EntryResult = 0;
uint16 EnableState;
int32 EntryResult;

CFE_SB_MsgId_t MessageID = CFE_SB_INVALID_MSG_ID;
CFE_SB_Buffer_t *BufPtr = (CFE_SB_Buffer_t *)NULL;
Expand Down