summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>2003-03-20 20:56:50 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>2003-03-20 20:56:50 +0000
commit2d063afc6dca9dfece479f0d80ad99095a7ccd9c (patch)
treefa68aadbaf299dc2a6763314a7a398ce4d9d51c4
parent67355f25f058a22971e9cbefc9e51181cc1fd4b6 (diff)
downloadATCD-2d063afc6dca9dfece479f0d80ad99095a7ccd9c.tar.gz
ChangeLogTag:Thu Mar 20 12:56:26 2003 Ossama Othman <ossama@uci.edu>
-rw-r--r--ChangeLog6
-rw-r--r--tests/Recursive_Condition_Bug_Test.cpp16
2 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index ee85e4efd79..bd9e063bab9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Thu Mar 20 12:56:26 2003 Ossama Othman <ossama@uci.edu>
+
+ * tests/Recursive_Condition_Bug_Test.cpp:
+
+ Fixed unused variable warning in single-threaded builds.
+
Thu Mar 20 12:35:09 2003 Chad Elliott <elliott_c@ociweb.com>
* bin/MakeProjectCreator/modules/ProjectCreator.pm:
diff --git a/tests/Recursive_Condition_Bug_Test.cpp b/tests/Recursive_Condition_Bug_Test.cpp
index 16371681bb3..43ea136f3f5 100644
--- a/tests/Recursive_Condition_Bug_Test.cpp
+++ b/tests/Recursive_Condition_Bug_Test.cpp
@@ -14,7 +14,7 @@
// specialization when combined with the
// ACE_Thread_Timer_Queue_Adapter on Win32 and Posix pthreads.
// It was added to test for bugs with the ACE_OS recursive
-// condition implementation.
+// condition implementation.
//
// = AUTHOR
// Leonid Kvetnyi <leonidk@nice.com> and
@@ -28,13 +28,15 @@
#include "ace/Timer_Heap.h"
#include "ace/Timer_Queue_Adapters.h"
-ACE_RCSID(tests, Recursive_Condition_Bug_Test, "$Id$")
-
-// Number of iterations for the performance tests.
-static int max_iterations = 30;
+ACE_RCSID (tests,
+ Recursive_Condition_Bug_Test,
+ "$Id$")
#if defined (ACE_HAS_THREADS)
+// Number of iterations for the performance tests.
+static int max_iterations = 30;
+
typedef ACE_Thread_Timer_Queue_Adapter<ACE_Timer_Heap> Thread_Timer_Queue;
class Test_Handler;
@@ -69,7 +71,7 @@ public:
ACE_TEXT ("schedule failed")),
-1);
- ACE_DEBUG ((LM_INFO,
+ ACE_DEBUG ((LM_INFO,
ACE_TEXT ("(%t) %d iteration(s) remain\n"),
max_iterations));
}
@@ -158,7 +160,7 @@ ACE_TMAIN (int, ACE_TCHAR *[])
if (-1 == task.putq (mb))
ACE_ERROR_RETURN ((LM_ERROR,
- ACE_TEXT ("(%t) %p\n"),
+ ACE_TEXT ("(%t) %p\n"),
ACE_TEXT ("putq")),
-1);