Skip to content

Commit 52a9cce

Browse files
committed
memory/patcher: fix compiler warning
syscall() returns a long, but we are invoking shmat(), which returns a void*. Signed-off-by: Maxwell Coil <[email protected]>
1 parent cdf46e6 commit 52a9cce

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)