diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-26 18:25:17 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-26 18:25:17 +0000 |
commit | da0eecb9aeca0a49c2f1af5981644749b879d3a5 (patch) | |
tree | dd179c11d0ebdcf608e9d63b10138430254912da /TAO | |
parent | 391b189530b42b451e033590b689fa4357cfb06e (diff) | |
download | ATCD-da0eecb9aeca0a49c2f1af5981644749b879d3a5.tar.gz |
ChangeLogTag: Fri Jan 26 18:21:17 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO')
121 files changed, 205 insertions, 199 deletions
diff --git a/TAO/ChangeLog b/TAO/ChangeLog index efcfa740157..dab3216469e 100644 --- a/TAO/ChangeLog +++ b/TAO/ChangeLog @@ -1,3 +1,9 @@ +Fri Jan 26 18:21:17 UTC 2007 Chad Elliott <elliott_c@ociweb.com> + + * *.cpp: + + Removed unused variable warnings from 120 files. + Fri Jan 26 16:59:47 UTC 2007 Jeff Parsons <j.parsons@vanderbilt.edu> * TAO_IDL/ast/ast_structure_fwd.cpp: diff --git a/TAO/examples/AMH/Sink_Server/Client_Task.cpp b/TAO/examples/AMH/Sink_Server/Client_Task.cpp index 8294feb2dba..0780491cf91 100644 --- a/TAO/examples/AMH/Sink_Server/Client_Task.cpp +++ b/TAO/examples/AMH/Sink_Server/Client_Task.cpp @@ -130,7 +130,7 @@ Client_Task::run_test (void) test_end = ACE_OS::gethrtime (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 0; } @@ -167,7 +167,7 @@ Client_Task::svc (void) this->latency_.sample (now - start); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 0; } diff --git a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp b/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp index 297e13a1b92..e168976bd08 100644 --- a/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp +++ b/TAO/examples/CSD_Strategy/ThreadPool5/ClientTask.cpp @@ -225,7 +225,7 @@ ClientTask::validate_connection () #endif /* TAO_HAS_MESSAGING == 1 */ return true; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } } diff --git a/TAO/examples/Callback_Quoter/Consumer_Input_Handler.cpp b/TAO/examples/Callback_Quoter/Consumer_Input_Handler.cpp index a6a559e08b7..65d25959c76 100644 --- a/TAO/examples/Callback_Quoter/Consumer_Input_Handler.cpp +++ b/TAO/examples/Callback_Quoter/Consumer_Input_Handler.cpp @@ -190,7 +190,7 @@ Consumer_Input_Handler::quit_consumer_process () { this->consumer_handler_->consumer_servant_->shutdown (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp index 679732de6a9..8700bc9964c 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/fp_example/server.cpp @@ -234,7 +234,7 @@ Worker::svc (void) { this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } ACE_DEBUG ((LM_DEBUG, "(%t|%T): Worker thread exiting...\n")); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp index bf88cfd1083..5f6739fbf9f 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/mif_example/server.cpp @@ -234,7 +234,7 @@ Worker::svc (void) { this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } ACE_DEBUG ((LM_DEBUG, "(%t|%T): Worker thread exiting...\n")); diff --git a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp index 03c798b85f9..76e68cb70f6 100644 --- a/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp +++ b/TAO/examples/Kokyu_dsrt_schedulers/muf_example/server.cpp @@ -234,7 +234,7 @@ Worker::svc (void) { this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } ACE_DEBUG ((LM_DEBUG, "(%t|%T): Worker thread exiting...\n")); diff --git a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp index 0159babcd5d..6061703700d 100644 --- a/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp +++ b/TAO/examples/PluggableUDP/tests/Performance/UDP_i.cpp @@ -81,7 +81,7 @@ UDP_i::invoke (const char * client_name, } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "UDP_i::invoke: Received exception\n")); @@ -105,7 +105,7 @@ UDP_i::reset (const char * client_name) responseHandler_->reset (client_name); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "UDP_i::reset: Received exception\n")); diff --git a/TAO/examples/ior_corbaloc/client.cpp b/TAO/examples/ior_corbaloc/client.cpp index 40fe3a30905..dd8ca517b0b 100644 --- a/TAO/examples/ior_corbaloc/client.cpp +++ b/TAO/examples/ior_corbaloc/client.cpp @@ -36,7 +36,7 @@ int main (int argc, char *argv []) } return 0; } - catch (const CORBA::SystemException& ex) + catch (const CORBA::SystemException&) { // } diff --git a/TAO/orbsvcs/examples/Notify/Lanes/ORB_Run_Task.cpp b/TAO/orbsvcs/examples/Notify/Lanes/ORB_Run_Task.cpp index 93abf1aba22..0b181bdf553 100644 --- a/TAO/orbsvcs/examples/Notify/Lanes/ORB_Run_Task.cpp +++ b/TAO/orbsvcs/examples/Notify/Lanes/ORB_Run_Task.cpp @@ -22,7 +22,7 @@ TAO_Notify_ORB_Run_Task::svc (void) this->orb_objects_.orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/orbsvcs/examples/RtEC/MCast/Consumer.cpp b/TAO/orbsvcs/examples/RtEC/MCast/Consumer.cpp index 3b05553e724..4f5bbb2cc1e 100644 --- a/TAO/orbsvcs/examples/RtEC/MCast/Consumer.cpp +++ b/TAO/orbsvcs/examples/RtEC/MCast/Consumer.cpp @@ -49,7 +49,7 @@ Consumer::disconnect (void) // Disconnect from the proxy this->proxy_->disconnect_push_supplier (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions } diff --git a/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp b/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp index cd918b23953..205518d540d 100644 --- a/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp +++ b/TAO/orbsvcs/examples/RtEC/MCast/Supplier.cpp @@ -43,7 +43,7 @@ Supplier::disconnect (void) { this->proxy_->disconnect_push_consumer (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -69,7 +69,7 @@ Supplier::perform_push (void) this->proxy_->push (event); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } } diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp index 99a720b71f7..22ba06395b5 100644 --- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp +++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Baseline/client.cpp @@ -43,7 +43,7 @@ public: { this->run_test (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp index a14144e0ac2..9d0e2bcea31 100644 --- a/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp +++ b/TAO/orbsvcs/performance-tests/RTEvent/RTCORBA_Callback/client.cpp @@ -49,7 +49,7 @@ public: { this->run_test (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp index 89493ff49ee..be33b292aff 100644 --- a/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Asynch_Three_Stage/Connection_Manager.cpp @@ -178,7 +178,7 @@ Connection_Manager::bind_to_receivers (const ACE_CString &sender_name, this->receiver_context_ = this->sender_context_->bind_new_context (name); } - catch (const CosNaming::NamingContext::AlreadyBound& al_ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { // // The sender context already exists, probably created by the @@ -413,7 +413,7 @@ Connection_Manager::bind_to_sender (const ACE_CString &sender_name, this->receiver_context_ = CosNaming::NamingContext::_narrow (object.in ()); } - catch (const CosNaming::NamingContext::NotFound& al_ex) + catch (const CosNaming::NamingContext::NotFound&) { name [0].id = CORBA::string_dup (this->sender_name_.c_str ()); @@ -459,7 +459,7 @@ Connection_Manager::bind_to_sender (const ACE_CString &sender_name, this->sender_ = AVStreams::MMDevice::_narrow (object.in ()); } - catch (const CosNaming::NamingContext::NotFound& al_ex) + catch (const CosNaming::NamingContext::NotFound&) { // No problem if the sender was not there. } diff --git a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp index 078c2937ea8..25ccab3f767 100644 --- a/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Bidirectional_Flows/sender.cpp @@ -395,7 +395,7 @@ Sender::pace_data (void) //TAO_AV_CORE::instance ()->orb ()->shutdown (1, //); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { //ACE_PRINT_EXCEPTION (ex, // "Sender::pace_data Failed\n"); diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp index eb49f48dbc3..216cee6a8ef 100644 --- a/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Multicast/server.cpp @@ -102,7 +102,7 @@ Server::init (int argc, this->my_naming_client_->bind (server_mmdevice_name, mmdevice.in ()); } - catch (const CosNaming::NamingContext::AlreadyBound& al_ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { server_mmdevice_name [0].id = CORBA::string_dup ("Server_MMDevice2"); this->my_naming_client_->bind (server_mmdevice_name, diff --git a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp index 7dd139f43d5..38d2967bd3e 100644 --- a/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp +++ b/TAO/orbsvcs/tests/AVStreams/Multicast_Full_Profile/server.cpp @@ -156,7 +156,7 @@ Server::init (int argc, this->my_naming_client_->bind (server_mmdevice_name, mmdevice.in ()); } - catch (const CosNaming::NamingContext::AlreadyBound& al_ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { server_mmdevice_name [0].id = CORBA::string_dup ("Server_MMDevice2"); this->my_naming_client_->bind (server_mmdevice_name, diff --git a/TAO/orbsvcs/tests/Bug_1395_Regression/Test_i.cpp b/TAO/orbsvcs/tests/Bug_1395_Regression/Test_i.cpp index 103af8d6117..6aa1ec88f69 100644 --- a/TAO/orbsvcs/tests/Bug_1395_Regression/Test_i.cpp +++ b/TAO/orbsvcs/tests/Bug_1395_Regression/Test_i.cpp @@ -46,7 +46,7 @@ Test_i::try_and_create_POA (void) poa_mgr_.in (), this->policies_); } - catch (const CORBA::TRANSIENT& ex) + catch (const CORBA::TRANSIENT&) { // A transient exception exception may be expected, // so we won't print out the word exception but we diff --git a/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp b/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp index 3bc9fdc4215..3102647f113 100644 --- a/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp +++ b/TAO/orbsvcs/tests/Bug_2247_Regression/Manager.cpp @@ -237,7 +237,7 @@ Manager::run (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR_RETURN ((LM_DEBUG, "Error in run \n"), @@ -312,11 +312,11 @@ int run_remote_test (Simple_Server_ptr server, const char* execute_key) ACE_OS::strcpy (received, s.in()); } } - catch (const CORBA::TRANSIENT& et) + catch (const CORBA::TRANSIENT&) { ACE_OS::strcpy (received, "CORBA::TRANSIENT"); } - catch (const CORBA::COMM_FAILURE& ec) + catch (const CORBA::COMM_FAILURE&) { ACE_OS::strcpy (received, "CORBA::COMM_FAILURE"); } @@ -370,11 +370,11 @@ int run_abort_test (Simple_Server_ptr server, ACE_OS::strcpy (received, s.in()); } } - catch (const CORBA::TRANSIENT& et) + catch (const CORBA::TRANSIENT&) { ACE_OS::strcpy (received, "CORBA::TRANSIENT"); } - catch (const CORBA::COMM_FAILURE& ec) + catch (const CORBA::COMM_FAILURE&) { ACE_OS::strcpy (received, "CORBA::COMM_FAILURE"); } @@ -423,7 +423,7 @@ int run_shutdown_test (Simple_Server_ptr server, ACE_OS::strcpy (received, s.in()); } } - catch (const CORBA::TRANSIENT& ex) + catch (const CORBA::TRANSIENT&) { ACE_OS::strcpy (received, "CORBA::TRANSIENT"); } diff --git a/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp b/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp index 2dc93f72765..993aaeef8ca 100644 --- a/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp +++ b/TAO/orbsvcs/tests/Bug_2248_Regression/client.cpp @@ -263,7 +263,7 @@ Manager::run (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR_RETURN ((LM_DEBUG, "Error in run \n"), @@ -343,11 +343,11 @@ int run_remote_test (Simple_Server_ptr server, const char* execute_key) ACE_OS::strcpy (received, s.in()); } } - catch (const CORBA::TRANSIENT& te) + catch (const CORBA::TRANSIENT&) { ACE_OS::strcpy (received, "CORBA::TRANSIENT"); } - catch (const CORBA::COMM_FAILURE& cf) + catch (const CORBA::COMM_FAILURE&) { ACE_OS::strcpy (received, "CORBA::COMM_FAILURE"); } @@ -396,11 +396,11 @@ int run_abort_test (Simple_Server_ptr server, ACE_OS::strcpy (received, s.in()); } } - catch (const CORBA::TRANSIENT& te) + catch (const CORBA::TRANSIENT&) { ACE_OS::strcpy (received, "CORBA::TRANSIENT"); } - catch (const CORBA::COMM_FAILURE& cf) + catch (const CORBA::COMM_FAILURE&) { ACE_OS::strcpy (received, "CORBA::COMM_FAILURE"); } diff --git a/TAO/orbsvcs/tests/Bug_2615_Regression/ServerRequest_Interceptor2.cpp b/TAO/orbsvcs/tests/Bug_2615_Regression/ServerRequest_Interceptor2.cpp index a2cf7a54282..afd584a6b3b 100644 --- a/TAO/orbsvcs/tests/Bug_2615_Regression/ServerRequest_Interceptor2.cpp +++ b/TAO/orbsvcs/tests/Bug_2615_Regression/ServerRequest_Interceptor2.cpp @@ -81,7 +81,7 @@ ACE_THROW_SPEC ((CORBA::SystemException, // No group version context has_ft_request_sc_ = false; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { throw; } diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp index 4c1fb74ceeb..69e9401a06e 100644 --- a/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp +++ b/TAO/orbsvcs/tests/CosEvent/Basic/MT_Disconnect.cpp @@ -111,7 +111,7 @@ MTD_Task::svc () { this->run_iteration (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp index 517ffb87601..01df584fecc 100644 --- a/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp +++ b/TAO/orbsvcs/tests/CosEvent/Basic/Random.cpp @@ -443,7 +443,7 @@ RND_Supplier::svc (void) this->push_new_event (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } if (i * 100 / niterations >= percent) diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp index 45e51852cd8..3a60fabd759 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Consumer.cpp @@ -213,7 +213,7 @@ CEC_Counting_Consumer_Task::svc () { this->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp index 2ac8fb804a5..dce9ffb7e2e 100644 --- a/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp +++ b/TAO/orbsvcs/tests/CosEvent/lib/Counting_Supplier.cpp @@ -87,7 +87,7 @@ CEC_Counting_Supplier_Task::svc () { this->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp index e08f25ae9e3..40df46d3aec 100644 --- a/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp +++ b/TAO/orbsvcs/tests/EC_MT_Mcast/Consumer.cpp @@ -50,7 +50,7 @@ Consumer::disconnect (void) // Disconnect from the proxy this->proxy_->disconnect_push_supplier (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions } diff --git a/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp b/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp index adc2b007fa0..c07e5d2a770 100644 --- a/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp +++ b/TAO/orbsvcs/tests/EC_MT_Mcast/Supplier.cpp @@ -44,7 +44,7 @@ Supplier::disconnect (void) { this->proxy_->disconnect_push_consumer (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -70,7 +70,7 @@ Supplier::perform_push (void) this->proxy_->push (event); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } } diff --git a/TAO/orbsvcs/tests/Event/UDP/Consumer.cpp b/TAO/orbsvcs/tests/Event/UDP/Consumer.cpp index 21347a34e9f..05968cd88b8 100644 --- a/TAO/orbsvcs/tests/Event/UDP/Consumer.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/Consumer.cpp @@ -58,7 +58,7 @@ Consumer::disconnect (void) // Disconnect from the proxy this->proxy_->disconnect_push_supplier (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions } diff --git a/TAO/orbsvcs/tests/Event/UDP/Supplier.cpp b/TAO/orbsvcs/tests/Event/UDP/Supplier.cpp index e13fc1e2903..b06c957738f 100644 --- a/TAO/orbsvcs/tests/Event/UDP/Supplier.cpp +++ b/TAO/orbsvcs/tests/Event/UDP/Supplier.cpp @@ -43,7 +43,7 @@ Supplier::disconnect (void) { this->proxy_->disconnect_push_consumer (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -89,7 +89,7 @@ Supplier::perform_push (void) this->proxy_->push (event); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } } diff --git a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp index 2edb37fe9f7..29c2c8676ce 100644 --- a/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp +++ b/TAO/orbsvcs/tests/FaultTolerance/IOGR/Manager.cpp @@ -211,7 +211,7 @@ Manager::run (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR_RETURN ((LM_DEBUG, "Error in run \n"), diff --git a/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp b/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp index 5dc1c8454f4..7a5e182fbaa 100644 --- a/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp +++ b/TAO/orbsvcs/tests/HTIOP/AMI/simple_client.cpp @@ -102,12 +102,12 @@ public: { excep_holder->raise_exception (); } - catch (const A::DidTheRightThing& ex) + catch (const A::DidTheRightThing&) { ACE_DEBUG ((LM_DEBUG, "... exception received successfully\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "... caught the wrong exception -> ERROR\n")); diff --git a/TAO/orbsvcs/tests/IOR_MCast/client.cpp b/TAO/orbsvcs/tests/IOR_MCast/client.cpp index 7beeedd4301..d227490893d 100644 --- a/TAO/orbsvcs/tests/IOR_MCast/client.cpp +++ b/TAO/orbsvcs/tests/IOR_MCast/client.cpp @@ -16,7 +16,7 @@ int main (int argc, char *argv []) return 0; } - catch (const CORBA::SystemException& ex) + catch (const CORBA::SystemException&) { // } diff --git a/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp b/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp index 5ac1c2611ca..b82cd08bf98 100644 --- a/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp +++ b/TAO/orbsvcs/tests/LoadBalancing/LoadMonitor/CPU/client.cpp @@ -100,7 +100,7 @@ main (int argc, char *argv[]) retrieved_load = 1; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, ".")); // Show some progress. diff --git a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp index c93e280e655..ed2088a7f4b 100644 --- a/TAO/orbsvcs/tests/Notify/lib/Driver.cpp +++ b/TAO/orbsvcs/tests/Notify/lib/Driver.cpp @@ -155,7 +155,7 @@ TAO_Notify_Tests_ORB_Run_Worker::svc (void) this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } return 0; diff --git a/TAO/orbsvcs/tests/Property/client.cpp b/TAO/orbsvcs/tests/Property/client.cpp index bbeff9780f7..5b261f0842d 100644 --- a/TAO/orbsvcs/tests/Property/client.cpp +++ b/TAO/orbsvcs/tests/Property/client.cpp @@ -355,7 +355,7 @@ Client::test_delete_property (const char *property_name) this->propsetdef_->delete_property (property_name_var.in ()); } - catch (const CORBA::UserException& ex) + catch (const CORBA::UserException&) { // For no property, it is ok to get the user exception. return 0; diff --git a/TAO/orbsvcs/tests/Redundant_Naming/client.cpp b/TAO/orbsvcs/tests/Redundant_Naming/client.cpp index 2f8a4561e24..84e37b0995a 100644 --- a/TAO/orbsvcs/tests/Redundant_Naming/client.cpp +++ b/TAO/orbsvcs/tests/Redundant_Naming/client.cpp @@ -362,7 +362,7 @@ main (int argc, ACE_TCHAR **argv) ACE_TEXT ("redundant server - deleted object found.\n")), -1); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { //expect exception since the context was deleted } @@ -406,7 +406,7 @@ main (int argc, ACE_TCHAR **argv) ACE_TEXT ("redundant server - deleted object found.\n")), -1); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { //expect exception since the context was deleted } @@ -428,7 +428,7 @@ main (int argc, ACE_TCHAR **argv) ACE_TEXT ("redundant server - deleted object found.\n")), -1); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { //expect exception since the context was deleted } diff --git a/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp b/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp index 38d85f88e7c..27a7b0b511c 100644 --- a/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp +++ b/TAO/orbsvcs/tests/Security/Secure_Invocation/client.cpp @@ -58,7 +58,7 @@ insecure_invocation_test (CORBA::ORB_ptr orb, // exception. server->baz (); } - catch (const CORBA::NO_PERMISSION& exc) + catch (const CORBA::NO_PERMISSION&) { ACE_DEBUG ((LM_INFO, "(%P|%t) Received CORBA::NO_PERMISSION from " diff --git a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp index e7e9693e1e3..ee365c81d78 100644 --- a/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp +++ b/TAO/orbsvcs/tests/Security/ssliop_corbaloc/client.cpp @@ -270,7 +270,7 @@ MT_Test::svc (void) ACE_DEBUG ((LM_DEBUG, "Bound name OK in thread %t\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "Unable to bind in thread %t\n")); @@ -305,7 +305,7 @@ MT_Test::svc (void) "Resolved name OK in thread %t\n")); } } - catch (const CosNaming::NamingContext::NotFound& ex) + catch (const CosNaming::NamingContext::NotFound&) { ACE_DEBUG ((LM_DEBUG, "Unable to resolve in thread %t\n")); @@ -324,7 +324,7 @@ MT_Test::svc (void) ACE_DEBUG ((LM_DEBUG, "Unbound name OK in thread %t\n")); } - catch (const CosNaming::NamingContext::NotFound& ex) + catch (const CosNaming::NamingContext::NotFound&) { ACE_DEBUG ((LM_DEBUG, "Unable to unbind in thread %t\n")); @@ -621,12 +621,12 @@ Exceptions_Test::invalid_name_test (TAO_Naming_Client &root_context) root_context->resolve (test_name); ACE_DEBUG ((LM_DEBUG, "Invalid name test failed\n")); } - catch (const CosNaming::NamingContext::InvalidName& ex) + catch (const CosNaming::NamingContext::InvalidName&) { ACE_DEBUG ((LM_DEBUG, "InvalidName exception works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Invalid name test failed\n")); throw; @@ -649,12 +649,12 @@ Exceptions_Test::already_bound_test (TAO_Naming_Client &root_context) obj.in ()); ACE_DEBUG ((LM_DEBUG, "Already bound (case 1) test failed\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "AlreadyBound exception (case 1) works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Already bound (case 1) test failed\n")); throw; @@ -679,12 +679,12 @@ Exceptions_Test::already_bound_test2 (TAO_Naming_Client &root_context) obj.in ()); ACE_DEBUG ((LM_DEBUG, "Already bound (case 2) test failed\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "AlreadyBound exception (case 2) works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Already bound (case 2) test failed\n")); throw; @@ -718,7 +718,7 @@ Exceptions_Test::not_found_test (TAO_Naming_Client &root_context) "NotFound exception (case 1)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Not found test failed\n")); throw; @@ -754,7 +754,7 @@ Exceptions_Test::not_found_test2 (TAO_Naming_Client &root_context) "NotFound exception (case 2)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Unbind test failed\n")); throw; @@ -791,7 +791,7 @@ Exceptions_Test::not_found_test3 (TAO_Naming_Client &root_context) "NotFound exception (case 3)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Not found (case 3) test failed\n")); throw; @@ -937,7 +937,7 @@ Destroy_Test::not_empty_test (CosNaming::NamingContext_var &ref) ref->destroy (); } - catch (const CosNaming::NamingContext::NotEmpty& ex) + catch (const CosNaming::NamingContext::NotEmpty&) { ACE_DEBUG ((LM_DEBUG, "NotEmpty exception works properly\n")); @@ -952,7 +952,7 @@ Destroy_Test::not_exist_test (CosNaming::NamingContext_var &ref) ref->destroy (); } - catch (const CORBA::OBJECT_NOT_EXIST& ex) + catch (const CORBA::OBJECT_NOT_EXIST&) { ACE_DEBUG ((LM_DEBUG, "Destroy works properly\n")); diff --git a/TAO/orbsvcs/tests/Simple_Naming/client.cpp b/TAO/orbsvcs/tests/Simple_Naming/client.cpp index e7e9693e1e3..ee365c81d78 100644 --- a/TAO/orbsvcs/tests/Simple_Naming/client.cpp +++ b/TAO/orbsvcs/tests/Simple_Naming/client.cpp @@ -270,7 +270,7 @@ MT_Test::svc (void) ACE_DEBUG ((LM_DEBUG, "Bound name OK in thread %t\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "Unable to bind in thread %t\n")); @@ -305,7 +305,7 @@ MT_Test::svc (void) "Resolved name OK in thread %t\n")); } } - catch (const CosNaming::NamingContext::NotFound& ex) + catch (const CosNaming::NamingContext::NotFound&) { ACE_DEBUG ((LM_DEBUG, "Unable to resolve in thread %t\n")); @@ -324,7 +324,7 @@ MT_Test::svc (void) ACE_DEBUG ((LM_DEBUG, "Unbound name OK in thread %t\n")); } - catch (const CosNaming::NamingContext::NotFound& ex) + catch (const CosNaming::NamingContext::NotFound&) { ACE_DEBUG ((LM_DEBUG, "Unable to unbind in thread %t\n")); @@ -621,12 +621,12 @@ Exceptions_Test::invalid_name_test (TAO_Naming_Client &root_context) root_context->resolve (test_name); ACE_DEBUG ((LM_DEBUG, "Invalid name test failed\n")); } - catch (const CosNaming::NamingContext::InvalidName& ex) + catch (const CosNaming::NamingContext::InvalidName&) { ACE_DEBUG ((LM_DEBUG, "InvalidName exception works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Invalid name test failed\n")); throw; @@ -649,12 +649,12 @@ Exceptions_Test::already_bound_test (TAO_Naming_Client &root_context) obj.in ()); ACE_DEBUG ((LM_DEBUG, "Already bound (case 1) test failed\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "AlreadyBound exception (case 1) works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Already bound (case 1) test failed\n")); throw; @@ -679,12 +679,12 @@ Exceptions_Test::already_bound_test2 (TAO_Naming_Client &root_context) obj.in ()); ACE_DEBUG ((LM_DEBUG, "Already bound (case 2) test failed\n")); } - catch (const CosNaming::NamingContext::AlreadyBound& ex) + catch (const CosNaming::NamingContext::AlreadyBound&) { ACE_DEBUG ((LM_DEBUG, "AlreadyBound exception (case 2) works properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Already bound (case 2) test failed\n")); throw; @@ -718,7 +718,7 @@ Exceptions_Test::not_found_test (TAO_Naming_Client &root_context) "NotFound exception (case 1)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Not found test failed\n")); throw; @@ -754,7 +754,7 @@ Exceptions_Test::not_found_test2 (TAO_Naming_Client &root_context) "NotFound exception (case 2)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Unbind test failed\n")); throw; @@ -791,7 +791,7 @@ Exceptions_Test::not_found_test3 (TAO_Naming_Client &root_context) "NotFound exception (case 3)" " - parameters aren't set correctly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "Not found (case 3) test failed\n")); throw; @@ -937,7 +937,7 @@ Destroy_Test::not_empty_test (CosNaming::NamingContext_var &ref) ref->destroy (); } - catch (const CosNaming::NamingContext::NotEmpty& ex) + catch (const CosNaming::NamingContext::NotEmpty&) { ACE_DEBUG ((LM_DEBUG, "NotEmpty exception works properly\n")); @@ -952,7 +952,7 @@ Destroy_Test::not_exist_test (CosNaming::NamingContext_var &ref) ref->destroy (); } - catch (const CORBA::OBJECT_NOT_EXIST& ex) + catch (const CORBA::OBJECT_NOT_EXIST&) { ACE_DEBUG ((LM_DEBUG, "Destroy works properly\n")); diff --git a/TAO/performance-tests/Latency/AMI/Server_Task.cpp b/TAO/performance-tests/Latency/AMI/Server_Task.cpp index ef75d7d3c8c..157dbe15c4f 100644 --- a/TAO/performance-tests/Latency/AMI/Server_Task.cpp +++ b/TAO/performance-tests/Latency/AMI/Server_Task.cpp @@ -17,6 +17,6 @@ Server_Task::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} return 0; } diff --git a/TAO/performance-tests/Latency/Thread_Per_Connection/Client_Task.cpp b/TAO/performance-tests/Latency/Thread_Per_Connection/Client_Task.cpp index 88b88454fb2..d4bfda66b43 100644 --- a/TAO/performance-tests/Latency/Thread_Per_Connection/Client_Task.cpp +++ b/TAO/performance-tests/Latency/Thread_Per_Connection/Client_Task.cpp @@ -30,7 +30,7 @@ Client_Task::svc (void) this->latency_.sample (now - start); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 0; } @@ -56,6 +56,6 @@ Client_Task::validate_connection (void) { (void) this->roundtrip_->test_method (dummy); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/performance-tests/Latency/Thread_Pool/Client_Task.cpp b/TAO/performance-tests/Latency/Thread_Pool/Client_Task.cpp index 5eb7a48fcf3..7bf5c9d2e52 100644 --- a/TAO/performance-tests/Latency/Thread_Pool/Client_Task.cpp +++ b/TAO/performance-tests/Latency/Thread_Pool/Client_Task.cpp @@ -30,7 +30,7 @@ Client_Task::svc (void) this->latency_.sample (now - start); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 0; } @@ -56,6 +56,6 @@ Client_Task::validate_connection (void) { (void) this->roundtrip_->test_method (dummy); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/performance-tests/Latency/Thread_Pool/Worker_Thread.cpp b/TAO/performance-tests/Latency/Thread_Pool/Worker_Thread.cpp index ee64274b86d..598128ad43a 100644 --- a/TAO/performance-tests/Latency/Thread_Pool/Worker_Thread.cpp +++ b/TAO/performance-tests/Latency/Thread_Pool/Worker_Thread.cpp @@ -17,6 +17,6 @@ Worker_Thread::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} return 0; } diff --git a/TAO/performance-tests/Sequence_Latency/Thread_Pool/Client_Task.cpp b/TAO/performance-tests/Sequence_Latency/Thread_Pool/Client_Task.cpp index c4abee2e922..6b719aa19eb 100644 --- a/TAO/performance-tests/Sequence_Latency/Thread_Pool/Client_Task.cpp +++ b/TAO/performance-tests/Sequence_Latency/Thread_Pool/Client_Task.cpp @@ -49,7 +49,7 @@ Client_Task::svc (void) this->test_double_seq (); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 0; } @@ -77,7 +77,7 @@ Client_Task::validate_connection (void) { (void) this->roundtrip_->test_octet_method (oc, dummy); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/AMH_Exceptions/server.cpp b/TAO/tests/AMH_Exceptions/server.cpp index e22de7cddf3..eedafb22c35 100644 --- a/TAO/tests/AMH_Exceptions/server.cpp +++ b/TAO/tests/AMH_Exceptions/server.cpp @@ -189,7 +189,7 @@ ST_AMH_Server::run_event_loop () this->orb_->perform_work (&period); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) {} } diff --git a/TAO/tests/AMH_Oneway/server.cpp b/TAO/tests/AMH_Oneway/server.cpp index cf0bd27d376..24246020a1d 100644 --- a/TAO/tests/AMH_Oneway/server.cpp +++ b/TAO/tests/AMH_Oneway/server.cpp @@ -218,7 +218,7 @@ ST_AMH_Server::run_event_loop () return; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) {} } diff --git a/TAO/tests/AMI_Buffering/Client_Task.cpp b/TAO/tests/AMI_Buffering/Client_Task.cpp index d1ac09cdabf..70a7d6d3414 100644 --- a/TAO/tests/AMI_Buffering/Client_Task.cpp +++ b/TAO/tests/AMI_Buffering/Client_Task.cpp @@ -36,7 +36,7 @@ Client_Task::svc (void) break; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Big_AMI/client.cpp b/TAO/tests/Big_AMI/client.cpp index f018e2c2f84..6c1c78a3e4a 100644 --- a/TAO/tests/Big_AMI/client.cpp +++ b/TAO/tests/Big_AMI/client.cpp @@ -109,7 +109,7 @@ public: { excep_holder->raise_exception (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "... caught the wrong exception -> ERROR\n")); diff --git a/TAO/tests/Big_Reply/Client_Task.cpp b/TAO/tests/Big_Reply/Client_Task.cpp index e6ae93ff2e8..8e1f4af358e 100644 --- a/TAO/tests/Big_Reply/Client_Task.cpp +++ b/TAO/tests/Big_Reply/Client_Task.cpp @@ -63,6 +63,6 @@ Client_Task::validate_connection (void) this->reply_gen_->ping (); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/Big_Request_Muxing/Client_Task.cpp b/TAO/tests/Big_Request_Muxing/Client_Task.cpp index c6bad09ef62..22a6f5d9f3b 100644 --- a/TAO/tests/Big_Request_Muxing/Client_Task.cpp +++ b/TAO/tests/Big_Request_Muxing/Client_Task.cpp @@ -117,5 +117,5 @@ Client_Task::validate_connection (void) (void) this->payload_receiver_->more_data (payload); } } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } diff --git a/TAO/tests/Big_Twoways/Session.cpp b/TAO/tests/Big_Twoways/Session.cpp index b968207076e..82d81a0accb 100644 --- a/TAO/tests/Big_Twoways/Session.cpp +++ b/TAO/tests/Big_Twoways/Session.cpp @@ -232,7 +232,7 @@ Session::validate_connections (void) (void) this->other_sessions_[j]->_is_a ("Not_An_IDL_Type"); #endif /* TAO_HAS_MESSAGING == 1 */ } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } } diff --git a/TAO/tests/Bug_1020_Basic_Regression/Client_Task.cpp b/TAO/tests/Bug_1020_Basic_Regression/Client_Task.cpp index 3df46e7833f..f01893bc102 100644 --- a/TAO/tests/Bug_1020_Basic_Regression/Client_Task.cpp +++ b/TAO/tests/Bug_1020_Basic_Regression/Client_Task.cpp @@ -19,7 +19,7 @@ Client_Task::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1020_Basic_Regression/Server_Task.cpp b/TAO/tests/Bug_1020_Basic_Regression/Server_Task.cpp index 8457c6b5eac..e90fc608a61 100644 --- a/TAO/tests/Bug_1020_Basic_Regression/Server_Task.cpp +++ b/TAO/tests/Bug_1020_Basic_Regression/Server_Task.cpp @@ -29,7 +29,7 @@ Server_Task::svc (void) this->echo_->echo_payload (payload); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1020_Regression/Server_Task.cpp b/TAO/tests/Bug_1020_Regression/Server_Task.cpp index 7ba22c46be5..a89ac08487a 100644 --- a/TAO/tests/Bug_1020_Regression/Server_Task.cpp +++ b/TAO/tests/Bug_1020_Regression/Server_Task.cpp @@ -28,7 +28,7 @@ Server_Task::svc (void) Test::Payload_var result = this->echo_->echo_payload (pload); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { stop_loop = 1; } diff --git a/TAO/tests/Bug_1270_Regression/Server_Timer.cpp b/TAO/tests/Bug_1270_Regression/Server_Timer.cpp index 0e1697a1c98..5eca7f6b241 100644 --- a/TAO/tests/Bug_1270_Regression/Server_Timer.cpp +++ b/TAO/tests/Bug_1270_Regression/Server_Timer.cpp @@ -47,7 +47,7 @@ Server_Timer::handle_timeout (ACE_Time_Value const &, void const *) echo->echo_payload (pload); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { this->echo_ = Test::Echo::_nil (); diff --git a/TAO/tests/Bug_1330_Regression/client.cpp b/TAO/tests/Bug_1330_Regression/client.cpp index 827c5554b26..043271d2a70 100644 --- a/TAO/tests/Bug_1330_Regression/client.cpp +++ b/TAO/tests/Bug_1330_Regression/client.cpp @@ -68,7 +68,7 @@ main (int argc, char *argv[]) orb->destroy (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { result =1; } diff --git a/TAO/tests/Bug_1476_Regression/Server_Task.cpp b/TAO/tests/Bug_1476_Regression/Server_Task.cpp index 7d742e5b8e2..d52edc68000 100644 --- a/TAO/tests/Bug_1476_Regression/Server_Task.cpp +++ b/TAO/tests/Bug_1476_Regression/Server_Task.cpp @@ -23,7 +23,7 @@ Server_Task::svc (void) ACE_Time_Value tv (15, 0); this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1482_Regression/Client_Task.cpp b/TAO/tests/Bug_1482_Regression/Client_Task.cpp index 7d17459c398..3285a62ed18 100644 --- a/TAO/tests/Bug_1482_Regression/Client_Task.cpp +++ b/TAO/tests/Bug_1482_Regression/Client_Task.cpp @@ -58,7 +58,7 @@ Client_Task::svc (void) } } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1482_Regression/Server_Task.cpp b/TAO/tests/Bug_1482_Regression/Server_Task.cpp index 17a394f8f17..f3a3cfadc65 100644 --- a/TAO/tests/Bug_1482_Regression/Server_Task.cpp +++ b/TAO/tests/Bug_1482_Regression/Server_Task.cpp @@ -20,7 +20,7 @@ Server_Task::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp b/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp index 777dfd899cc..aa2959f4104 100644 --- a/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp +++ b/TAO/tests/Bug_1551_Regression/Reply_Handler.cpp @@ -47,7 +47,7 @@ Reply_Handler::short_sleep_excep ( ACE_ERROR ((LM_ERROR, "ERROR: Got nill exceptionholder\n")); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Exceptions are expected and thus ignored in normal runs: #if 0 diff --git a/TAO/tests/Bug_1551_Regression/Server_Task.cpp b/TAO/tests/Bug_1551_Regression/Server_Task.cpp index 5dca0e5ed97..9f6f0783b85 100644 --- a/TAO/tests/Bug_1551_Regression/Server_Task.cpp +++ b/TAO/tests/Bug_1551_Regression/Server_Task.cpp @@ -20,7 +20,7 @@ Server_Task::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Bug_1627_Regression/client.cpp b/TAO/tests/Bug_1627_Regression/client.cpp index 827c5554b26..043271d2a70 100644 --- a/TAO/tests/Bug_1627_Regression/client.cpp +++ b/TAO/tests/Bug_1627_Regression/client.cpp @@ -68,7 +68,7 @@ main (int argc, char *argv[]) orb->destroy (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { result =1; } diff --git a/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp b/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp index 1e5a14e3da8..56dd69ca8ae 100644 --- a/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp +++ b/TAO/tests/Bug_2084_Regression/Collocated_Test.cpp @@ -111,7 +111,7 @@ main (int argc, char *argv[]) corb->destroy (); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Bug_2174_Regression/client.cpp b/TAO/tests/Bug_2174_Regression/client.cpp index 509db6595fd..f3325503619 100644 --- a/TAO/tests/Bug_2174_Regression/client.cpp +++ b/TAO/tests/Bug_2174_Regression/client.cpp @@ -84,7 +84,7 @@ int main (int argc, char* argv[]) ex._tao_print_exception ("ERROR: Exception caught:"); result = 4; } - catch (const CORBA::TRANSIENT& ex) + catch (const CORBA::TRANSIENT&) { result = 5; } diff --git a/TAO/tests/Bug_2319_Regression/server.cpp b/TAO/tests/Bug_2319_Regression/server.cpp index b6c06208174..935fd16ade1 100644 --- a/TAO/tests/Bug_2319_Regression/server.cpp +++ b/TAO/tests/Bug_2319_Regression/server.cpp @@ -232,7 +232,7 @@ void ST_AMH_Server::run_event_loop () return; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) {} } diff --git a/TAO/tests/Bug_2429_Regression/client.cpp b/TAO/tests/Bug_2429_Regression/client.cpp index 4c8326a9d99..90a229f1e45 100644 --- a/TAO/tests/Bug_2429_Regression/client.cpp +++ b/TAO/tests/Bug_2429_Regression/client.cpp @@ -54,7 +54,7 @@ class Reply_Handler ++parentMethod_excep_count; excep_holder->raise_exception (); } - catch (const CORBA::INTERNAL& iex) + catch (const CORBA::INTERNAL&) { ACE_DEBUG ((LM_DEBUG, "Successfully received an Internal Excep*ion as expected.\n")); } diff --git a/TAO/tests/CallbackTest/Service.cpp b/TAO/tests/CallbackTest/Service.cpp index 191c432fbfa..f1d7494b043 100644 --- a/TAO/tests/CallbackTest/Service.cpp +++ b/TAO/tests/CallbackTest/Service.cpp @@ -44,7 +44,7 @@ Service::run_test (Test::Callback_ptr callback) { callback->shutdown (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_ERROR, "(%P|%t) - Service, client shutdown FAILED\n")); } @@ -70,7 +70,7 @@ Service::call_are_you_there (Test::Callback_ptr callback) { (void) callback->are_you_there (out_str); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { exception_count++; } @@ -94,7 +94,7 @@ Service::call_test_oneway (Test::Callback_ptr callback) { (void) callback->test_oneway (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { exception_count++; } diff --git a/TAO/tests/Client_Leaks/Server_Task.cpp b/TAO/tests/Client_Leaks/Server_Task.cpp index b31ad7c5078..0dd3295e11f 100644 --- a/TAO/tests/Client_Leaks/Server_Task.cpp +++ b/TAO/tests/Client_Leaks/Server_Task.cpp @@ -23,7 +23,7 @@ Server_Task::svc (void) // ACE_Time_Value tv (120, 0); this->orb_->run ( /* tv, */); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp index 1213d69c276..1bb9dcf3336 100644 --- a/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp +++ b/TAO/tests/Collocation_Exception_Test/Collocated_Test.cpp @@ -92,7 +92,7 @@ main (int argc, char *argv[]) ACE_Thread_Manager::instance ()->wait (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp index 97635628029..e1e606e0ab4 100644 --- a/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp +++ b/TAO/tests/Collocation_Oneway_Tests/Collocated_Test.cpp @@ -118,7 +118,7 @@ main (int argc, char *argv[]) ACE_Thread_Manager::instance ()->wait (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Collocation_Tests/Collocated_Test.cpp b/TAO/tests/Collocation_Tests/Collocated_Test.cpp index 2dc79a2c99f..5c5dae3a745 100644 --- a/TAO/tests/Collocation_Tests/Collocated_Test.cpp +++ b/TAO/tests/Collocation_Tests/Collocated_Test.cpp @@ -98,7 +98,7 @@ main (int argc, char *argv[]) corb->destroy (); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Connection_Timeout/client.cpp b/TAO/tests/Connection_Timeout/client.cpp index 7cc9937e21e..8f22c8a14c6 100644 --- a/TAO/tests/Connection_Timeout/client.cpp +++ b/TAO/tests/Connection_Timeout/client.cpp @@ -68,7 +68,7 @@ test_timeout (CORBA::Object_ptr object) hello->shutdown (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Stop the timer profile_timer.stop (); diff --git a/TAO/tests/Crash_On_Write/client.cpp b/TAO/tests/Crash_On_Write/client.cpp index 5366059f0e9..dc438124b4f 100644 --- a/TAO/tests/Crash_On_Write/client.cpp +++ b/TAO/tests/Crash_On_Write/client.cpp @@ -49,7 +49,7 @@ single_iteration (Test::Oneway_Receiver_ptr oneway_receiver) ACE_Time_Value tv (0, 40000); ACE_OS::sleep (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return 1; } diff --git a/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp b/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp index 92ee6a2eb9a..0af71b3e567 100644 --- a/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp +++ b/TAO/tests/DII_Collocation_Tests/oneway/Collocated_Test.cpp @@ -120,7 +120,7 @@ main (int argc, char *argv[]) return 1; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/DII_Collocation_Tests/twoway/Collocated_Test.cpp b/TAO/tests/DII_Collocation_Tests/twoway/Collocated_Test.cpp index 35c454f7f02..603fa6b822d 100644 --- a/TAO/tests/DII_Collocation_Tests/twoway/Collocated_Test.cpp +++ b/TAO/tests/DII_Collocation_Tests/twoway/Collocated_Test.cpp @@ -124,7 +124,7 @@ main (int argc, char *argv[]) return 1; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Faults/test_i.cpp b/TAO/tests/Faults/test_i.cpp index 30f89a0d7a3..bf03c9cbc8f 100644 --- a/TAO/tests/Faults/test_i.cpp +++ b/TAO/tests/Faults/test_i.cpp @@ -123,7 +123,7 @@ Middle_i::shutdown (void) { this->server_->shutdown (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // ignore them } diff --git a/TAO/tests/File_IO/client.cpp b/TAO/tests/File_IO/client.cpp index 037b77a8fb1..cfb213a7855 100644 --- a/TAO/tests/File_IO/client.cpp +++ b/TAO/tests/File_IO/client.cpp @@ -95,7 +95,7 @@ validate_connection (CORBA::Object_ptr object) { // Ignore... } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Rethrow any other exceptions. throw; diff --git a/TAO/tests/MT_Client/client.cpp b/TAO/tests/MT_Client/client.cpp index 9d4ee7cfd61..0f9fcb8e0a2 100644 --- a/TAO/tests/MT_Client/client.cpp +++ b/TAO/tests/MT_Client/client.cpp @@ -148,7 +148,7 @@ Client::validate_connection (void) { this->server_->test_method (); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/MT_Server/server.cpp b/TAO/tests/MT_Server/server.cpp index f81e2beb81f..70402cf712c 100644 --- a/TAO/tests/MT_Server/server.cpp +++ b/TAO/tests/MT_Server/server.cpp @@ -144,7 +144,7 @@ Worker::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } return 0; diff --git a/TAO/tests/MT_Timeout/Server_Task.cpp b/TAO/tests/MT_Timeout/Server_Task.cpp index 62b99fc48ff..3bd6359ebc3 100644 --- a/TAO/tests/MT_Timeout/Server_Task.cpp +++ b/TAO/tests/MT_Timeout/Server_Task.cpp @@ -22,7 +22,7 @@ Server_Task::svc (void) { this->orb_->run (this->running_time_); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Muxed_GIOP_Versions/client.cpp b/TAO/tests/Muxed_GIOP_Versions/client.cpp index 6a267a9487c..31b4cc6aa38 100644 --- a/TAO/tests/Muxed_GIOP_Versions/client.cpp +++ b/TAO/tests/Muxed_GIOP_Versions/client.cpp @@ -148,7 +148,7 @@ main (int argc, char *argv[]) } } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // ACE_DEBUG ((LM_DEBUG, "caught exception\n", corbaloc_arg)); } @@ -199,7 +199,7 @@ Client::validate_connection (void) { this->server_->test_method (j); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/Muxed_GIOP_Versions/server.cpp b/TAO/tests/Muxed_GIOP_Versions/server.cpp index 8e1279e4f2c..8cf28f45059 100644 --- a/TAO/tests/Muxed_GIOP_Versions/server.cpp +++ b/TAO/tests/Muxed_GIOP_Versions/server.cpp @@ -219,7 +219,7 @@ Worker::svc (void) ACE_Time_Value tv (140, 0); this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } return 0; @@ -249,7 +249,7 @@ SelfClient::validate_connection (void) { this->server_->test_method (j); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/Muxing/Client_Task.cpp b/TAO/tests/Muxing/Client_Task.cpp index e83bea1f1d9..2002768040c 100644 --- a/TAO/tests/Muxing/Client_Task.cpp +++ b/TAO/tests/Muxing/Client_Task.cpp @@ -34,7 +34,7 @@ Client_Task::svc (void) this->receiver_->receive_data (payload); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/Muxing/Server_Task.cpp b/TAO/tests/Muxing/Server_Task.cpp index 2bd40e20e75..34e6f5e9edb 100644 --- a/TAO/tests/Muxing/Server_Task.cpp +++ b/TAO/tests/Muxing/Server_Task.cpp @@ -28,7 +28,7 @@ Server_Task::svc (void) #endif this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/NestedUpcall/Simple/server.cpp b/TAO/tests/NestedUpcall/Simple/server.cpp index 24b97badb94..7c16c359b2a 100644 --- a/TAO/tests/NestedUpcall/Simple/server.cpp +++ b/TAO/tests/NestedUpcall/Simple/server.cpp @@ -37,7 +37,7 @@ Server_Task::svc (void) { this->orb_->run (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/No_Server_MT_Connect_Test/client.cpp b/TAO/tests/No_Server_MT_Connect_Test/client.cpp index fa26fcd71b9..f40dfd3392b 100644 --- a/TAO/tests/No_Server_MT_Connect_Test/client.cpp +++ b/TAO/tests/No_Server_MT_Connect_Test/client.cpp @@ -148,7 +148,7 @@ Client::svc (void) i)); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "(%P|%t) Expected exceptions \n")); diff --git a/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp b/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp index adc22cd2ac0..3a297b25374 100644 --- a/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp +++ b/TAO/tests/OBV/Collocated/Forward/Collocated_Test.cpp @@ -90,7 +90,7 @@ main (int argc, char *argv[]) ACE_Thread_Manager::instance ()->wait (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/OBV/Factory/client.cpp b/TAO/tests/OBV/Factory/client.cpp index 5cd4fd15d9a..d33f1f43d70 100644 --- a/TAO/tests/OBV/Factory/client.cpp +++ b/TAO/tests/OBV/Factory/client.cpp @@ -52,7 +52,7 @@ no_factory (OBV_FactoryTest::Test_ptr test) succeed = true; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/tests/OBV/Truncatable/client.cpp b/TAO/tests/OBV/Truncatable/client.cpp index e000aaf57d2..372e751b0e2 100644 --- a/TAO/tests/OBV/Truncatable/client.cpp +++ b/TAO/tests/OBV/Truncatable/client.cpp @@ -260,7 +260,7 @@ main (int argc, char *argv[]) ACE_TEXT_CHAR_TO_TCHAR(desc.in()))); test->op1 ("case4", &v3, ov3.out (), desc.inout ()); } - catch (const CORBA::MARSHAL& v3ex) + catch (const CORBA::MARSHAL&) { if (verbose) ACE_DEBUG ((LM_DEBUG,ACE_TEXT ("passed\n"))); diff --git a/TAO/tests/Oneways_Invoking_Twoways/Server_Task.cpp b/TAO/tests/Oneways_Invoking_Twoways/Server_Task.cpp index 4496c2e7581..3529e7ac785 100644 --- a/TAO/tests/Oneways_Invoking_Twoways/Server_Task.cpp +++ b/TAO/tests/Oneways_Invoking_Twoways/Server_Task.cpp @@ -23,7 +23,7 @@ Server_Task::svc (void) ACE_Time_Value tv (60, 0); this->orb_->run (tv); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/POA/Bug_2511_Regression/server.cpp b/TAO/tests/POA/Bug_2511_Regression/server.cpp index 4cda3f582df..715b1b85a73 100644 --- a/TAO/tests/POA/Bug_2511_Regression/server.cpp +++ b/TAO/tests/POA/Bug_2511_Regression/server.cpp @@ -218,7 +218,7 @@ main (int argc, char **argv) { testObject->exceptional(); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "exceptional() yielded exception\n")); caught = true; @@ -230,7 +230,7 @@ main (int argc, char **argv) { testObject->notexisting(); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, "notexisting() yielded exception\n")); caught = true; diff --git a/TAO/tests/Portable_Interceptors/Benchmark/client.cpp b/TAO/tests/Portable_Interceptors/Benchmark/client.cpp index bf51c2f3bf0..440d3a26d00 100644 --- a/TAO/tests/Portable_Interceptors/Benchmark/client.cpp +++ b/TAO/tests/Portable_Interceptors/Benchmark/client.cpp @@ -110,7 +110,7 @@ run_test (Test_Interceptors::Secure_Vault_ptr server) } marker.dump_stats ("Authenticate method ", gsf, 2); } - catch (const Test_Interceptors::Invalid& userex) + catch (const Test_Interceptors::Invalid&) { ACE_DEBUG ((LM_DEBUG, "Invalid user\n")); } diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp b/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp index ec776011160..94337f645e1 100644 --- a/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp +++ b/TAO/tests/Portable_Interceptors/Bug_1559/client.cpp @@ -51,7 +51,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "Caught Silly\n")); } @@ -60,7 +60,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp b/TAO/tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp index 738d36414af..44121112bd8 100644 --- a/TAO/tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp +++ b/TAO/tests/Portable_Interceptors/Bug_1559/client_interceptor.cpp @@ -84,7 +84,7 @@ Echo_Client_Request_Interceptor::send_request ( { ri->get_request_service_context (::service_id); } - catch (const CORBA::BAD_PARAM& error) + catch (const CORBA::BAD_PARAM&) { // This is supposed to happen exception_count++; diff --git a/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp b/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp index 939cd33831f..2a78a1a66ec 100644 --- a/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp +++ b/TAO/tests/Portable_Interceptors/Bug_2088/client.cpp @@ -37,7 +37,7 @@ main (int argc, char *argv[]) CORBA::ORB_init (argc, argv, ""); } - catch (const CORBA::NO_MEMORY& ex) + catch (const CORBA::NO_MEMORY&) { // Initializer1 throws this exception and we should get it here caught_exception = true; diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Client_Task.cpp index 12802f28aea..a26f61237ab 100644 --- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Client_Task.cpp +++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Client_Task.cpp @@ -66,7 +66,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { (void) server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "Caught Silly\n")); } @@ -75,7 +75,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp index c56bb23e027..390c62e60d1 100644 --- a/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp +++ b/TAO/tests/Portable_Interceptors/Collocated/Dynamic/Collocated_Test.cpp @@ -121,7 +121,7 @@ main (int argc, char *argv[]) " properly\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Client_Task.cpp index aad90e7680a..917096aa300 100644 --- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Client_Task.cpp +++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Client_Task.cpp @@ -63,7 +63,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "Caught Silly\n")); } @@ -72,7 +72,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp index b7a287e6f8d..e8a8fa5e368 100644 --- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp +++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/Collocated_Test.cpp @@ -105,7 +105,7 @@ main (int argc, char *argv[]) ACE_Thread_Manager::instance ()->wait (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Ignore exceptions.. } diff --git a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.cpp b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.cpp index 1cd6e4b132e..a660fab5984 100644 --- a/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.cpp +++ b/TAO/tests/Portable_Interceptors/Collocated/Service_Context_Manipulation/interceptors.cpp @@ -171,7 +171,7 @@ Echo_Client_Request_Interceptor::receive_reply ( buf2)); } } - catch (const CORBA::BAD_PARAM& ex) + catch (const CORBA::BAD_PARAM&) { ACE_ERROR ((LM_ERROR, "ERROR: Service Context Error \n")); @@ -251,7 +251,7 @@ Echo_Client_Request_Interceptor::receive_exception ( buf2)); } } - catch (const CORBA::BAD_PARAM& ex) + catch (const CORBA::BAD_PARAM&) { ACE_ERROR ((LM_ERROR, "ERROR: Service Context Error \n")); diff --git a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp index 4edea513319..c0358e99f27 100644 --- a/TAO/tests/Portable_Interceptors/Dynamic/client.cpp +++ b/TAO/tests/Portable_Interceptors/Dynamic/client.cpp @@ -69,7 +69,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "Caught Silly\n")); } @@ -78,7 +78,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp index c5efb20ea5c..2ab4f6778cb 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Client_Task.cpp @@ -66,7 +66,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { (void) server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "As expected, Caught Silly\n")); } @@ -75,7 +75,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "As expected, Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp index de4e62710e2..f8d5a53b5cc 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Collocated/Collocated_Test.cpp @@ -207,7 +207,7 @@ main (int argc, char *argv[]) return 1; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR: Some exception was caught in main().\n")); diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp index a0e19db9a20..6b4c210d7ab 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/Client_Task.cpp @@ -66,7 +66,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { (void) server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "As expected, Caught Silly\n")); } @@ -75,7 +75,7 @@ Client_Task::run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "As expected, Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp index 0e37ed9a745..802548bb6d8 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/client_main.cpp @@ -120,7 +120,7 @@ main (int argc, char *argv[]) return 1; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR: Some exception was caught in main().\n")); diff --git a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp index 2927863b703..2c39f5bbd01 100644 --- a/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp +++ b/TAO/tests/Portable_Interceptors/Processing_Mode_Policy/Remote/server_main.cpp @@ -122,7 +122,7 @@ main (int argc, char *argv[]) return 1; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR ((LM_ERROR, "(%P|%t) ERROR: Some exception was caught in main().\n")); diff --git a/TAO/tests/Portable_Interceptors/Register_Initial_References/Server_ORBInitializer.cpp b/TAO/tests/Portable_Interceptors/Register_Initial_References/Server_ORBInitializer.cpp index 0ca898c19ca..b9fc8aa89e3 100644 --- a/TAO/tests/Portable_Interceptors/Register_Initial_References/Server_ORBInitializer.cpp +++ b/TAO/tests/Portable_Interceptors/Register_Initial_References/Server_ORBInitializer.cpp @@ -37,11 +37,11 @@ Server_ORBInitializer::pre_init ( orbinitinfo->register_initial_reference ("", object); } - catch (const PortableInterceptor::ORBInitInfo::InvalidName& ex) + catch (const PortableInterceptor::ORBInitInfo::InvalidName&) { invalid_name = true; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -56,11 +56,11 @@ Server_ORBInitializer::pre_init ( orbinitinfo->register_initial_reference ("MyService", object); } - catch (const PortableInterceptor::ORBInitInfo::InvalidName& ex) + catch (const PortableInterceptor::ORBInitInfo::InvalidName&) { duplicate_name = true; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -82,7 +82,7 @@ Server_ORBInitializer::pre_init ( invalid_object = true; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp b/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp index f71fab5d877..29f8f3a3424 100644 --- a/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp +++ b/TAO/tests/Portable_Interceptors/Register_Initial_References/server.cpp @@ -29,11 +29,11 @@ int test_orb (CORBA::ORB_ptr orb) orb->register_initial_reference ("", object); } - catch (const CORBA::ORB::InvalidName& ex) + catch (const CORBA::ORB::InvalidName&) { invalid_name = true; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -51,11 +51,11 @@ int test_orb (CORBA::ORB_ptr orb) orb->register_initial_reference ("ORBMyService", object); } - catch (const CORBA::ORB::InvalidName& ex) + catch (const CORBA::ORB::InvalidName&) { duplicate_name = true; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } @@ -80,7 +80,7 @@ int test_orb (CORBA::ORB_ptr orb) invalid_object = true; } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp index 795e8033ed1..035b3959bd2 100644 --- a/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp +++ b/TAO/tests/Portable_Interceptors/Request_Interceptor_Flow/client.cpp @@ -67,11 +67,11 @@ client_test (Test_ptr server) "operation.\n")); } } - catch (const Test::X& ex) + catch (const Test::X&) { // Expected exception. Ignore it. } - catch (const CORBA::NO_PERMISSION& ex) + catch (const CORBA::NO_PERMISSION&) { // Expected exception. Ignore it. } @@ -84,7 +84,7 @@ client_test (Test_ptr server) ex.scenario)); throw; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR ((LM_ERROR, "\nERROR: Exception thrown from client_test() " @@ -120,11 +120,11 @@ server_test (Test_ptr server) "operation.\n")); } } - catch (const Test::X& ex) + catch (const Test::X&) { // Expected exception. Ignore it. } - catch (const CORBA::NO_PERMISSION& ex) + catch (const CORBA::NO_PERMISSION&) { // Expected exception. Ignore it. } @@ -137,7 +137,7 @@ server_test (Test_ptr server) ex.scenario)); throw; } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_ERROR ((LM_ERROR, "\nERROR: Exception thrown from server_test() " diff --git a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp index 2949040ebb8..f8c76885c57 100644 --- a/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp +++ b/TAO/tests/Portable_Interceptors/Service_Context_Manipulation/client.cpp @@ -52,7 +52,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->user (); } - catch (const Test_Interceptors::Silly& userex) + catch (const Test_Interceptors::Silly&) { ACE_DEBUG ((LM_DEBUG, "Caught Silly\n")); } @@ -61,7 +61,7 @@ run_test (Test_Interceptors::Visual_ptr server) { server->system (); } - catch (const CORBA::INV_OBJREF& sysex) + catch (const CORBA::INV_OBJREF&) { ACE_DEBUG ((LM_DEBUG, "Caught CORBA::INV_OBJREF\n")); } diff --git a/TAO/tests/RTCORBA/Banded_Connections/client.cpp b/TAO/tests/RTCORBA/Banded_Connections/client.cpp index a7236c2d60f..ac6b8e192bf 100644 --- a/TAO/tests/RTCORBA/Banded_Connections/client.cpp +++ b/TAO/tests/RTCORBA/Banded_Connections/client.cpp @@ -85,7 +85,7 @@ invocation_exception_test (Test_ptr obj, ACE_DEBUG ((LM_DEBUG, "INV_POLICY exception is caught as expected.\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Unexpected exception. ACE_DEBUG ((LM_DEBUG, "Error: unexpected exception caught\n")); diff --git a/TAO/tests/RTCORBA/Banded_Connections/server.cpp b/TAO/tests/RTCORBA/Banded_Connections/server.cpp index de595175f04..69c5979a187 100644 --- a/TAO/tests/RTCORBA/Banded_Connections/server.cpp +++ b/TAO/tests/RTCORBA/Banded_Connections/server.cpp @@ -270,13 +270,13 @@ object_activation_exception_test (RTPortableServer::POA_ptr poa, // should have been raised. ACE_DEBUG ((LM_DEBUG, "ERROR: no exception caught\n")); } - catch (const CORBA::BAD_PARAM& ex) + catch (const CORBA::BAD_PARAM&) { // Expected exception. ACE_DEBUG ((LM_DEBUG, "BAD_PARAM exception is caught as expected.\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Unexpected exception. ACE_DEBUG ((LM_DEBUG, "ERROR: unexpected exception caught\n")); @@ -301,13 +301,13 @@ poa_creation_exception_test (PortableServer::POA_ptr root_poa, // should have been raised. ACE_DEBUG ((LM_DEBUG, "ERROR: no exception caught\n")); } - catch (const PortableServer::POA::InvalidPolicy& ex) + catch (const PortableServer::POA::InvalidPolicy&) { // Expected exception. ACE_DEBUG ((LM_DEBUG, "InvalidPolicy exception is caught as expected.\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Unexpected exception. ACE_DEBUG ((LM_DEBUG, "ERROR: unexpected exception\n")); diff --git a/TAO/tests/RTCORBA/Client_Protocol/client.cpp b/TAO/tests/RTCORBA/Client_Protocol/client.cpp index 2ab8589eeef..1043ff145e0 100644 --- a/TAO/tests/RTCORBA/Client_Protocol/client.cpp +++ b/TAO/tests/RTCORBA/Client_Protocol/client.cpp @@ -75,7 +75,7 @@ exception_test (Test_ptr server, ACE_DEBUG ((LM_DEBUG, "INV_POLICY exception is caught as expected.\n")); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { ACE_DEBUG ((LM_DEBUG, msg)); throw; diff --git a/TAO/tests/RTCORBA/Linear_Priority/client.cpp b/TAO/tests/RTCORBA/Linear_Priority/client.cpp index 91a198ab76b..3f5f1a6179c 100644 --- a/TAO/tests/RTCORBA/Linear_Priority/client.cpp +++ b/TAO/tests/RTCORBA/Linear_Priority/client.cpp @@ -123,7 +123,7 @@ Worker_Thread::validate_connection (void) throw; // Otherwise, ignore... } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Rethrow any other exceptions. throw; diff --git a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp index a7b56506f10..3399bf97feb 100644 --- a/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp +++ b/TAO/tests/RTCORBA/Priority_Inversion_With_Bands/test_i.cpp @@ -34,7 +34,7 @@ test_i::test_i (CORBA::ORB_ptr orb, this->work_iterations_in_one_sec_ = this->estimate_iterations (); } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { throw; } diff --git a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp index e39f6b10935..e7db2d0dbcc 100644 --- a/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp +++ b/TAO/tests/RTCORBA/Profile_And_Endpoint_Selection/client.cpp @@ -187,7 +187,7 @@ Worker_Thread::validate_connection (void) throw; // Otherwise, ignore... } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { // Rethrow any other exceptions. throw; diff --git a/TAO/tests/Reliable_Oneways/client.cpp b/TAO/tests/Reliable_Oneways/client.cpp index ac3f07029a5..7fa211ab60d 100644 --- a/TAO/tests/Reliable_Oneways/client.cpp +++ b/TAO/tests/Reliable_Oneways/client.cpp @@ -200,7 +200,7 @@ run_one_iteration (int i, shutdown_helper->shutdown (); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { } diff --git a/TAO/tests/Stack_Recursion/Client_Task.cpp b/TAO/tests/Stack_Recursion/Client_Task.cpp index 5fb430bd1b8..7cf844a765f 100644 --- a/TAO/tests/Stack_Recursion/Client_Task.cpp +++ b/TAO/tests/Stack_Recursion/Client_Task.cpp @@ -42,7 +42,7 @@ Client_Task::svc (void) payload); } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } @@ -61,6 +61,6 @@ Client_Task::validate_connections (void) this->sender_->ping (); } - catch (const CORBA::Exception& ex){} + catch (const CORBA::Exception&){} } } diff --git a/TAO/tests/Stack_Recursion/Server_Task.cpp b/TAO/tests/Stack_Recursion/Server_Task.cpp index 0e0f4521369..ffacc6abae5 100644 --- a/TAO/tests/Stack_Recursion/Server_Task.cpp +++ b/TAO/tests/Stack_Recursion/Server_Task.cpp @@ -32,7 +32,7 @@ Server_Task::svc (void) } } - catch (const CORBA::Exception& ex) + catch (const CORBA::Exception&) { return -1; } diff --git a/TAO/tests/TransportCurrent/Framework/Current_Test_Impl.cpp b/TAO/tests/TransportCurrent/Framework/Current_Test_Impl.cpp index 3dc9e95919e..d2b11d0485c 100644 --- a/TAO/tests/TransportCurrent/Framework/Current_Test_Impl.cpp +++ b/TAO/tests/TransportCurrent/Framework/Current_Test_Impl.cpp @@ -78,12 +78,12 @@ Current_Test_Impl::invoked_by_client (void) { this->invoked_by_client_i (); } - catch (const TAO::Transport::NoContext& ex) + catch (const TAO::Transport::NoContext&) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) server - Caught a Transport::NoContext exception\n"))); } - catch (const CORBA::SystemException& ex1) + catch (const CORBA::SystemException&) { ACE_ERROR ((LM_ERROR, ACE_TEXT ("(%P|%t) server - Caught a CORBA::SystemException exception\n"))); |