summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/qmf/engine/ResilientConnection.cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2011-06-07 21:33:46 +0000
committerAndrew Stitcher <astitcher@apache.org>2011-06-07 21:33:46 +0000
commit46af35ba4c7867098a1c5e1cea9bd24275cbad40 (patch)
tree2926edbadafc83a9822f2837789ef1e19b04ab92 /qpid/cpp/src/qmf/engine/ResilientConnection.cpp
parent64131785f764add6086247aadc3e717a6ebeab33 (diff)
downloadqpid-python-46af35ba4c7867098a1c5e1cea9bd24275cbad40.tar.gz
QPID-3284: Eliminated warnings from gcc 4.6 compiler
- Removed a bunch of variables set but not further used. - Rejigged some asserts which would now have unused vars if compiler -DNDEBUG git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1133166 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/qmf/engine/ResilientConnection.cpp')
-rw-r--r--qpid/cpp/src/qmf/engine/ResilientConnection.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/qpid/cpp/src/qmf/engine/ResilientConnection.cpp b/qpid/cpp/src/qmf/engine/ResilientConnection.cpp
index ab65b8d768..41dd9ff00c 100644
--- a/qpid/cpp/src/qmf/engine/ResilientConnection.cpp
+++ b/qpid/cpp/src/qmf/engine/ResilientConnection.cpp
@@ -334,8 +334,7 @@ void ResilientConnectionImpl::notify()
{
if (notifyFd != -1)
{
- int unused_ret; //Suppress warnings about ignoring return value.
- unused_ret = ::write(notifyFd, ".", 1);
+ (void) ::write(notifyFd, ".", 1);
}
}
@@ -432,8 +431,7 @@ void ResilientConnectionImpl::EnqueueEvent(ResilientConnectionEvent::EventKind k
if (notifyFd != -1)
{
- int unused_ret; //Suppress warnings about ignoring return value.
- unused_ret = ::write(notifyFd, ".", 1);
+ (void) ::write(notifyFd, ".", 1);
}
}