diff options
| author | Léo Lam <leo@innovatetechnologi.es> | 2016-10-22 19:08:17 +0200 |
|---|---|---|
| committer | Léo Lam <leo@innovatetechnologi.es> | 2016-10-23 00:43:08 +0200 |
| commit | 68156a02ed6495d9735d8eed50708e8d9c168dc8 (patch) | |
| tree | 509d86742dc759ba462f9b4942c8b7cb15614fb2 /Source/Core/InputCommon/ControllerInterface | |
| parent | df76f2910b4c84a7063ab662e4f30236e06efaa0 (diff) | |
Fix -Wunused-result warnings
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp index 08687332fb..d3f8f5fd36 100644 --- a/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp +++ b/Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp @@ -131,7 +131,9 @@ static void StopHotplugThread() { // Write something to efd so that select() stops blocking. uint64_t value = 1; - write(s_wakeup_eventfd, &value, sizeof(uint64_t)); + if (write(s_wakeup_eventfd, &value, sizeof(uint64_t)) < 0) + { + } s_hotplug_thread.join(); } } @@ -404,7 +406,9 @@ void evdevDevice::ForceFeedback::SetState(ControlState state) play.code = m_id; play.value = 1; - write(m_fd, (const void*)&play, sizeof(play)); + if (write(m_fd, &play, sizeof(play)) < 0) + { + } } } |
