Skip to content

Commit 01bccb4

Browse files
committed
Merge pull request #95 from jphickey/fix-77-aliasing-warning
Fix #77, use separate address variable
2 parents ef8d059 + e59d18d commit 01bccb4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fsw/src/sch_lab_app.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ int32 SCH_LAB_AppInit(void)
144144
SCH_LAB_ScheduleTable_t * ConfigTable;
145145
SCH_LAB_ScheduleTableEntry_t *ConfigEntry;
146146
SCH_LAB_StateEntry_t * LocalStateEntry;
147+
void * TableAddr;
147148

148149
memset(&SCH_LAB_Global, 0, sizeof(SCH_LAB_Global));
149150

@@ -177,7 +178,7 @@ int32 SCH_LAB_AppInit(void)
177178
/*
178179
** Get Table Address
179180
*/
180-
Status = CFE_TBL_GetAddress((void **)&ConfigTable, SCH_LAB_Global.TblHandle);
181+
Status = CFE_TBL_GetAddress(&TableAddr, SCH_LAB_Global.TblHandle);
181182
if (Status != CFE_SUCCESS && Status != CFE_TBL_INFO_UPDATED)
182183
{
183184
CFE_ES_WriteToSysLog("SCH_LAB: Error Getting Table's Address SCH_LAB_SchTbl, RC = 0x%08lX\n",
@@ -189,6 +190,7 @@ int32 SCH_LAB_AppInit(void)
189190
/*
190191
** Initialize the command headers
191192
*/
193+
ConfigTable = TableAddr;
192194
ConfigEntry = ConfigTable->Config;
193195
LocalStateEntry = SCH_LAB_Global.State;
194196
for (i = 0; i < SCH_LAB_MAX_SCHEDULE_ENTRIES; i++)

0 commit comments

Comments
 (0)