diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-03 17:43:11 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-11-03 17:43:11 +0000 |
commit | 8e3dd5600c47a7d2cd01d24a93b2a86f98cf8291 (patch) | |
tree | 1f417f494035ef3ef15f61494331b92fb0f8d99f | |
parent | 01c8eb8dd5dd145a2894df2f8fee791beab95af4 (diff) | |
download | ATCD-8e3dd5600c47a7d2cd01d24a93b2a86f98cf8291.tar.gz |
ChangeLogTag:Fri Nov 3 09:41:20 2000 Carlos O'Ryan <coryan@uci.edu>
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-02a | 8 | ||||
-rw-r--r-- | ChangeLogs/ChangeLog-03a | 8 | ||||
-rw-r--r-- | tests/RMCast/RMCast_Membership_Test.cpp | 16 |
4 files changed, 32 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog index e0f7dfbc30d..8e19d36c05f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +Fri Nov 3 09:41:20 2000 Carlos O'Ryan <coryan@uci.edu> + + * tests/RMCast/RMCast_Membership_Test.cpp: + Fixed warning about variables possibly uninitialized before + their first use. In fact the variables are initialized before + their first use, but the code flow is too complex for the + compiler to figure that out. + Fri Nov 3 09:34:39 2000 Carlos O'Ryan <coryan@uci.edu> * ace/Makefile: diff --git a/ChangeLogs/ChangeLog-02a b/ChangeLogs/ChangeLog-02a index e0f7dfbc30d..8e19d36c05f 100644 --- a/ChangeLogs/ChangeLog-02a +++ b/ChangeLogs/ChangeLog-02a @@ -1,3 +1,11 @@ +Fri Nov 3 09:41:20 2000 Carlos O'Ryan <coryan@uci.edu> + + * tests/RMCast/RMCast_Membership_Test.cpp: + Fixed warning about variables possibly uninitialized before + their first use. In fact the variables are initialized before + their first use, but the code flow is too complex for the + compiler to figure that out. + Fri Nov 3 09:34:39 2000 Carlos O'Ryan <coryan@uci.edu> * ace/Makefile: diff --git a/ChangeLogs/ChangeLog-03a b/ChangeLogs/ChangeLog-03a index e0f7dfbc30d..8e19d36c05f 100644 --- a/ChangeLogs/ChangeLog-03a +++ b/ChangeLogs/ChangeLog-03a @@ -1,3 +1,11 @@ +Fri Nov 3 09:41:20 2000 Carlos O'Ryan <coryan@uci.edu> + + * tests/RMCast/RMCast_Membership_Test.cpp: + Fixed warning about variables possibly uninitialized before + their first use. In fact the variables are initialized before + their first use, but the code flow is too complex for the + compiler to figure that out. + Fri Nov 3 09:34:39 2000 Carlos O'Ryan <coryan@uci.edu> * ace/Makefile: diff --git a/tests/RMCast/RMCast_Membership_Test.cpp b/tests/RMCast/RMCast_Membership_Test.cpp index 88ba88a4950..9580061d9d9 100644 --- a/tests/RMCast/RMCast_Membership_Test.cpp +++ b/tests/RMCast/RMCast_Membership_Test.cpp @@ -180,8 +180,8 @@ main (int, ACE_TCHAR *[]) Tester tester; Task task (&tester); if (task.activate (THR_NEW_LWP|THR_JOINABLE, 4) == -1) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("Cannot activate the threads\n")), + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("Cannot activate the threads\n")), 1); ACE_Thread_Manager::instance ()->wait (); } @@ -248,8 +248,8 @@ Tester::join (ACE_RMCast::Join &join) return 0; } // Not found - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("Unknown proxy in Tester::join\n")), + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("Unknown proxy in Tester::join\n")), -1); } @@ -274,8 +274,8 @@ Tester::leave (ACE_RMCast::Leave &leave) return 0; } // Not found - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("Unknown proxy in Tester::leave\n")), + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("Unknown proxy in Tester::leave\n")), -1); } @@ -297,8 +297,8 @@ Tester::ack (ACE_RMCast::Ack &ack) // Assume the lock is held, verify that the ack message satisfy the // invariants... - ACE_UINT32 next_expected; - ACE_UINT32 highest_received; + ACE_UINT32 next_expected = 0; + ACE_UINT32 highest_received = 0; int set = 0; for (size_t i = 0; i != nproxy; ++i) { |