summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-21 15:37:07 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1998-10-21 15:37:07 +0000
commit64065581360769a734628fee1d03aa415f841d9d (patch)
tree4acc507526be560d7556141a03cdc7a38e03391d
parentb33cfcfd4042379a4f1c641cc97f09a38dad0275 (diff)
downloadATCD-64065581360769a734628fee1d03aa415f841d9d.tar.gz
(reschedule): only declare local "timerID" without ACE_NDEBUG, to
avoid compile warning with debug=0.
-rw-r--r--ace/Timer_Heap_T.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/ace/Timer_Heap_T.cpp b/ace/Timer_Heap_T.cpp
index 031b40c1b28..21c82bbe99d 100644
--- a/ace/Timer_Heap_T.cpp
+++ b/ace/Timer_Heap_T.cpp
@@ -224,7 +224,7 @@ template <class TYPE, class FUNCTOR, class ACE_LOCK> int
ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::is_empty (void) const
{
ACE_TRACE ("ACE_Timer_Heap::is_empty");
- return this->cur_size_ == 0;
+ return this->cur_size_ == 0;
}
@@ -467,7 +467,10 @@ ACE_Timer_Heap_T<TYPE, FUNCTOR, ACE_LOCK>::reschedule (ACE_Timer_Node_T<TYPE> *e
// to reacquire it.
// NOTE: we rely on the fact that we will get the same timer id we just
// freed.
- int timerId = this->timer_id ();
+# if !defined (ACE_NDEBUG)
+ int timerId =
+# endif /* ACE_NDEBUG */
+ this->timer_id ();
ACE_ASSERT(timerId == expired->get_timer_id ()); // Just to be safe...