diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-01-22 19:42:19 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2012-01-22 19:42:19 +0000 |
commit | 82d310b8d5965411dc2f02bd02be93b3b54909b7 (patch) | |
tree | cd70d12355deecc41b010c0be7c39419d70dfa04 /ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp | |
parent | fa508f1670498f4d89364ed8b5fc75daad735498 (diff) | |
download | ATCD-82d310b8d5965411dc2f02bd02be93b3b54909b7.tar.gz |
Sun Jan 22 19:41:27 UTC 2012 Johnny Willemsen <jwillemsen@remedy.nl>
* examples/Reactor/WFMO_Reactor/APC.cpp:
* examples/Reactor/WFMO_Reactor/Abandoned.cpp:
* examples/Reactor/WFMO_Reactor/Directory_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Handle_Close.cpp:
* examples/Reactor/WFMO_Reactor/Network_Events.cpp:
* examples/Reactor/WFMO_Reactor/Prerun_State_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Registration.cpp:
* examples/Reactor/WFMO_Reactor/Registry_Changes.cpp:
* examples/Reactor/WFMO_Reactor/Suspended_Removals.cpp:
* examples/Reactor/WFMO_Reactor/Talker.cpp:
* examples/Reactor/WFMO_Reactor/Window_Messages.cpp:
Fixed GCC 4.6.2 release warnings
Diffstat (limited to 'ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp')
-rw-r--r-- | ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp b/ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp index db7e279178d..5cfa260baac 100644 --- a/ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp +++ b/ACE/examples/Reactor/WFMO_Reactor/Network_Events.cpp @@ -57,8 +57,7 @@ Network_Handler::Network_Handler (ACE_SOCK_Stream &s) this->reactor (ACE_Reactor::instance ()); int result = this->reactor ()->register_handler (this, READ_MASK); - ACE_ASSERT (result == 0); - ACE_UNUSED_ARG (result); + ACE_TEST_ASSERT (result == 0); } ACE_HANDLE @@ -136,8 +135,7 @@ Network_Listener::Network_Listener (void) this->reactor (ACE_Reactor::instance ()); int result = this->reactor ()->register_handler (this, ACE_Event_Handler::ACCEPT_MASK); - ACE_ASSERT (result == 0); - ACE_UNUSED_ARG (result); + ACE_TEST_ASSERT (result == 0); } Network_Listener::~Network_Listener (void) @@ -170,13 +168,12 @@ Network_Listener::handle_input (ACE_HANDLE handle) 0, // timeout 1, // restart reset_new_handle); // reset new handler - ACE_ASSERT (result == 0); - ACE_UNUSED_ARG (result); + ACE_TEST_ASSERT (result == 0); ACE_DEBUG ((LM_DEBUG, "Remote connection from: ")); remote_address.dump (); - Network_Handler *handler; + Network_Handler *handler = 0; ACE_NEW_RETURN (handler, Network_Handler (stream), -1); return 0; |