Skip to content

Commit

Permalink
Fix #373, Squash constParameter warning in linux cfe_psp_memory.c
Browse files Browse the repository at this point in the history
  • Loading branch information
skliper committed Jan 3, 2023
1 parent a260e9c commit f5bdede
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions fsw/pc-linux/src/cfe_psp_memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,14 +757,16 @@ void CFE_PSP_DeleteProcessorReservedMemory(void)
*/
int32 CFE_PSP_GetKernelTextSegmentInfo(cpuaddr *PtrToKernelSegment, uint32 *SizeOfKernelSegment)
{
/*
** Prevent warnings by referencing parameters
*/
/* Check pointers */
if (PtrToKernelSegment == NULL || SizeOfKernelSegment == NULL)
{
return CFE_PSP_ERROR;
}

/* Set to known values */
*PtrToKernelSegment = (cpuaddr)0x0;
*SizeOfKernelSegment = 0;

return CFE_PSP_ERROR_NOT_IMPLEMENTED;
}

Expand Down

0 comments on commit f5bdede

Please sign in to comment.