From 8e3dd5600c47a7d2cd01d24a93b2a86f98cf8291 Mon Sep 17 00:00:00 2001 From: coryan Date: Fri, 3 Nov 2000 17:43:11 +0000 Subject: ChangeLogTag:Fri Nov 3 09:41:20 2000 Carlos O'Ryan --- ChangeLog | 8 ++++++++ ChangeLogs/ChangeLog-02a | 8 ++++++++ ChangeLogs/ChangeLog-03a | 8 ++++++++ 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 + + * 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 * 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 + + * 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 * 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 + + * 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 * 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) { -- cgit v1.2.1