From 963fc80c1de0c8cbc8caff8608c061f578d39866 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/qpid@750930 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/DispatcherTest.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cpp/src/tests/DispatcherTest.cpp') 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); } } -- cgit v1.2.1