diff options
| author | Jonathan Robie <jonathan@apache.org> | 2009-03-06 14:58:35 +0000 |
|---|---|---|
| committer | Jonathan Robie <jonathan@apache.org> | 2009-03-06 14:58:35 +0000 |
| commit | 5cd0c3d4e5bc8a7468476a45a2e542500944f000 (patch) | |
| tree | 1c2d142bc2892ffaaaca393b52454cd9020bba5a /qpid/cpp/src/tests/DispatcherTest.cpp | |
| parent | a8f0c5e57355e5209fb16c13197e28e08d6aecc0 (diff) | |
| download | qpid-python-5cd0c3d4e5bc8a7468476a45a2e542500944f000.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@750930 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/DispatcherTest.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/DispatcherTest.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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); } } |
