forked from pool/openmpi4
2a914cad07
Add openmpi4 OBS-URL: https://build.opensuse.org/request/show/764679 OBS-URL: https://build.opensuse.org/package/show/science:HPC/openmpi4?expand=0&rev=1
25 lines
991 B
Diff
25 lines
991 B
Diff
commit aa60ad84658b3433bcecb968f8dea2031fec27c3
|
|
Author: Maxwell Coil <mcoil@nd.edu>
|
|
Date: Sun Dec 8 13:56:00 2019 -0500
|
|
|
|
memory/patcher: fix compiler warning
|
|
|
|
syscall() returns a long, but we are invoking shmat(), which returns
|
|
a void*.
|
|
|
|
Signed-off-by: Maxwell Coil <mcoil@nd.edu>
|
|
|
|
diff --git opal/mca/memory/patcher/memory_patcher_component.c opal/mca/memory/patcher/memory_patcher_component.c
|
|
index 687d430fa362..272ec721225b 100644
|
|
--- opal/mca/memory/patcher/memory_patcher_component.c
|
|
+++ opal/mca/memory/patcher/memory_patcher_component.c
|
|
@@ -440,7 +440,7 @@ static void *_intercept_shmat(int shmid, const void *shmaddr, int shmflg)
|
|
|
|
if (!original_shmat) {
|
|
#if defined(SYS_shmat)
|
|
- result = memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg);
|
|
+ result = (void*) memory_patcher_syscall(SYS_shmat, shmid, shmaddr, shmflg);
|
|
#else // IPCOP_shmat
|
|
unsigned long ret;
|
|
ret = memory_patcher_syscall(SYS_ipc, IPCOP_shmat,
|