Skip to content

Commit cf9a5fb

Browse files
authored
Merge pull request #7226 from mcoil1/pr/fix-memory_patcher
memory/patcher: fix compiler warning
2 parents 73ecece + 52a9cce commit cf9a5fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

opal/mca/memory/patcher/memory_patcher_component.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ static void *_intercept_shmat(int shmid, const void *shmaddr, int shmflg)
450450

451451
if (!original_shmat) {
452452
#if defined(SYS_shmat)
453-
result = memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg);
453+
result = (void*) memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg);
454454
#else // IPCOP_shmat
455455
unsigned long ret;
456456
ret = memory_patcher_syscall(SYS_ipc, IPCOP_shmat,

0 commit comments

Comments
 (0)