mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-23 06:57:08 +00:00
WiimoteReal/IOLinux: Fix warning.
This commit is contained in:
parent
590b94975d
commit
26c5b2f57a
@ -138,7 +138,8 @@ static int HciInquiry(int device_socket, InquiryRequest* request)
|
|||||||
|
|
||||||
// Signal doneness to `poll`.
|
// Signal doneness to `poll`.
|
||||||
u64 val = 1;
|
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); });
|
Common::ScopeGuard join_guard([&] { pthread_join(hci_inquiry_thread.handle, nullptr); });
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user