summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/corelib/ipc/qsharedmemory_posix.cpp2
-rw-r--r--src/corelib/ipc/qsharedmemory_systemv.cpp2
-rw-r--r--src/corelib/ipc/qsystemsemaphore_systemv.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/ipc/qsharedmemory_posix.cpp b/src/corelib/ipc/qsharedmemory_posix.cpp
index c2c0bff07bf..313b34a5946 100644
--- a/src/corelib/ipc/qsharedmemory_posix.cpp
+++ b/src/corelib/ipc/qsharedmemory_posix.cpp
@@ -27,7 +27,7 @@ using namespace QtIpcCommon;
bool QSharedMemoryPosix::runtimeSupportCheck()
{
static const bool result = []() {
- shm_open("", 0, 0); // this WILL fail
+ (void)shm_open("", 0, 0); // this WILL fail
return errno != ENOSYS;
}();
return result;
diff --git a/src/corelib/ipc/qsharedmemory_systemv.cpp b/src/corelib/ipc/qsharedmemory_systemv.cpp
index 385ffdd5975..18bcc708de0 100644
--- a/src/corelib/ipc/qsharedmemory_systemv.cpp
+++ b/src/corelib/ipc/qsharedmemory_systemv.cpp
@@ -36,7 +36,7 @@ bool QSharedMemorySystemV::runtimeSupportCheck()
return false;
#endif
static const bool result = []() {
- shmget(IPC_PRIVATE, ~size_t(0), 0); // this will fail
+ (void)shmget(IPC_PRIVATE, ~size_t(0), 0); // this will fail
return errno != ENOSYS;
}();
return result;
diff --git a/src/corelib/ipc/qsystemsemaphore_systemv.cpp b/src/corelib/ipc/qsystemsemaphore_systemv.cpp
index 3d73a622623..cdfa6adfd48 100644
--- a/src/corelib/ipc/qsystemsemaphore_systemv.cpp
+++ b/src/corelib/ipc/qsystemsemaphore_systemv.cpp
@@ -40,7 +40,7 @@ bool QSystemSemaphoreSystemV::runtimeSupportCheck()
return false;
#endif
static const bool result = []() {
- semget(IPC_PRIVATE, -1, 0); // this will fail
+ (void)semget(IPC_PRIVATE, -1, 0); // this will fail
return errno != ENOSYS;
}();
return result;