From 36c92f9369bce7d98ee2231bba81028bdc4811ca Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Mon, 20 Jul 2009 10:41:29 +0000 Subject: QPID-1993: Patch from Chenta Lee to prevent compiler warnings with GCC 4.3.3 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@795752 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qmf/ResilientConnection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'qpid/cpp/src/qmf/ResilientConnection.cpp') diff --git a/qpid/cpp/src/qmf/ResilientConnection.cpp b/qpid/cpp/src/qmf/ResilientConnection.cpp index 66d76266ce..610306f896 100644 --- a/qpid/cpp/src/qmf/ResilientConnection.cpp +++ b/qpid/cpp/src/qmf/ResilientConnection.cpp @@ -385,7 +385,10 @@ void ResilientConnectionImpl::EnqueueEvent(ResilientConnectionEvent::EventKind k eventQueue.push_back(event); if (notifyFd != -1) - ::write(notifyFd, ".", 1); + { + int unused_ret; //Suppress warnings about ignoring return value. + unused_ret = ::write(notifyFd, ".", 1); + } } -- cgit v1.2.1