From 855ed72a8d8fbe7fe2ae3533d753ccd4eaec978c Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Tue, 22 Nov 2011 21:32:48 +0000 Subject: NO-JIRA - Fixed the handling of functions with ignored return values. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1205183 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qmf/engine/ResilientConnection.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/qmf') diff --git a/cpp/src/qmf/engine/ResilientConnection.cpp b/cpp/src/qmf/engine/ResilientConnection.cpp index 41dd9ff00c..851193ccc1 100644 --- a/cpp/src/qmf/engine/ResilientConnection.cpp +++ b/cpp/src/qmf/engine/ResilientConnection.cpp @@ -334,7 +334,7 @@ void ResilientConnectionImpl::notify() { if (notifyFd != -1) { - (void) ::write(notifyFd, ".", 1); + if (::write(notifyFd, ".", 1)) {} } } @@ -431,7 +431,7 @@ void ResilientConnectionImpl::EnqueueEvent(ResilientConnectionEvent::EventKind k if (notifyFd != -1) { - (void) ::write(notifyFd, ".", 1); + if (::write(notifyFd, ".", 1)) {} } } -- cgit v1.2.1