From 5cd0c3d4e5bc8a7468476a45a2e542500944f000 Mon Sep 17 00:00:00 2001 From: Jonathan Robie Date: Fri, 6 Mar 2009 14:58:35 +0000 Subject: 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@750930 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/DispatcherTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/tests/DispatcherTest.cpp b/qpid/cpp/src/tests/DispatcherTest.cpp index 6177e7bd11..ff4806094b 100644 --- a/qpid/cpp/src/tests/DispatcherTest.cpp +++ b/qpid/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); } } -- cgit v1.2.1