From 68156a02ed6495d9735d8eed50708e8d9c168dc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sat, 22 Oct 2016 19:08:17 +0200 Subject: Fix -Wunused-result warnings --- Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Source/Core/InputCommon/ControllerInterface/evdev/evdev.cpp') 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) + { + } } } -- cgit v1.2.3