summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorJonathan Robie <jonathan@apache.org>2009-03-06 14:58:35 +0000
committerJonathan Robie <jonathan@apache.org>2009-03-06 14:58:35 +0000
commit963fc80c1de0c8cbc8caff8608c061f578d39866 (patch)
tree93941b13d4e03b75d76052760d9f4cf9689254a5 /cpp
parent08bbe0606bf56d34c41d6f7f2b1173b84247305e (diff)
downloadqpid-python-963fc80c1de0c8cbc8caff8608c061f578d39866.tar.gz
Moved a variable inside an assertion to avoid unused variable error when the assertion is undefined.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@750930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/tests/DispatcherTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/src/tests/DispatcherTest.cpp b/cpp/src/tests/DispatcherTest.cpp
index 6177e7bd11..ff4806094b 100644
--- a/cpp/src/tests/DispatcherTest.cpp
+++ b/cpp/src/tests/DispatcherTest.cpp
@@ -108,8 +108,7 @@ void timer_handler(int /*signo*/, siginfo_t* /*info*/, void* /*context*/) {
wh->call(wcb);
} else {
phase1finished = true;
- int rc = ::timer_delete(timer);
- assert(rc == 0);
+ assert(::timer_delete(timer) == 0);
}
}