From 26c5b2f57a2f0aec357448523c205b0970a5b9c3 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 21 Oct 2025 14:51:54 -0500 Subject: [PATCH] WiimoteReal/IOLinux: Fix warning. --- Source/Core/Core/HW/WiimoteReal/IOLinux.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp b/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp index 5f1f6c68904..fef4f3f4df1 100644 --- a/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp +++ b/Source/Core/Core/HW/WiimoteReal/IOLinux.cpp @@ -138,7 +138,8 @@ static int HciInquiry(int device_socket, InquiryRequest* request) // Signal doneness to `poll`. u64 val = 1; - write(done_event, &val, sizeof(val)); + if (write(done_event, &val, sizeof(val)) != sizeof(val)) + ERROR_LOG_FMT(WIIMOTE, "failed to write to eventfd: {}", Common::LastStrerrorString()); }}; Common::ScopeGuard join_guard([&] { pthread_join(hci_inquiry_thread.handle, nullptr); });