From febc86f1874cc8a9320a97822cafc4715ef6720c Mon Sep 17 00:00:00 2001 From: Robin Davies Date: Thu, 8 Aug 2024 16:41:59 -0400 Subject: [PATCH] Github compile errors. --- NetworkManagerP2P/src/DBusDispatcher.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NetworkManagerP2P/src/DBusDispatcher.cpp b/NetworkManagerP2P/src/DBusDispatcher.cpp index f6532676..ad2f97bd 100644 --- a/NetworkManagerP2P/src/DBusDispatcher.cpp +++ b/NetworkManagerP2P/src/DBusDispatcher.cpp @@ -82,7 +82,7 @@ void DBusDispatcher::WakeThread() uint64_t val = 1; if (eventFd != -1) { - write(eventFd, &val, sizeof(val)); + (void)write(eventFd, &val, sizeof(val)); } } void DBusDispatcher::ThreadProc() @@ -180,7 +180,7 @@ void DBusDispatcher::ThreadProc() if (pollFds[1].revents & POLLIN) // received a wakup event? { uint64_t counter; - read(pollFds[1].fd, &counter, sizeof(counter)); // reset the wakeup event. + (void)read(pollFds[1].fd, &counter, sizeof(counter)); // reset the wakeup event. } } }