Changeset 19656

Show
Ignore:
Timestamp:
12/13/06 12:12:33 (2 years ago)
Author:
patrick
Message:

Use a simpler approach to ignoring unused variables.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/tweek/tweek/CORBA/CorbaManager.cpp

    r19540 r19656  
    127127         } 
    128128      } 
    129       catch (CORBA::ORB::InvalidName& ex) 
    130       { 
    131          boost::ignore_unused_variable_warning(ex); 
    132  
     129      catch (CORBA::ORB::InvalidName&) 
     130      { 
    133131         // This should not happen! 
    134132         vprDEBUG(vprDBG_ALL, vprDBG_CRITICAL_LVL) 
     
    280278   // This will be raised if the IdUniqunessPolicy within our child POA is set 
    281279   // to UNIQUE_ID. 
    282    catch (PortableServer::POA::ServantAlreadyActive& active_ex) 
    283    { 
    284       boost::ignore_unused_variable_warning(active_ex); 
     280   catch (PortableServer::POA::ServantAlreadyActive&) 
     281   { 
    285282      vprDEBUG(tweekDBG_CORBA, vprDBG_WARNING_LVL) 
    286283         << "WARNING: Servant already active within our POA\n" 
    287284         << vprDEBUG_FLUSH; 
    288285   } 
    289    catch (PortableServer::POA::WrongPolicy& policy_ex) 
    290    { 
    291       boost::ignore_unused_variable_warning(policy_ex); 
     286   catch (PortableServer::POA::WrongPolicy&) 
     287   { 
    292288      status = false; 
    293289      vprDEBUG(tweekDBG_CORBA, vprDBG_CRITICAL_LVL) 
     
    356352            } 
    357353         } 
    358          catch (CosNaming::NamingContext::AlreadyBound& ex) 
    359          { 
    360             boost::ignore_unused_variable_warning(ex); 
     354         catch (CosNaming::NamingContext::AlreadyBound&) 
     355         { 
    361356            vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL) 
    362357               << "WARNING: Subject manager reference already bound!\n" 
     
    364359         } 
    365360      } 
    366       catch (CORBA::COMM_FAILURE& ex) 
    367       { 
    368          boost::ignore_unused_variable_warning(ex); 
     361      catch (CORBA::COMM_FAILURE&) 
     362      { 
    369363         status = false; 
    370364         vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL) 
     
    451445                                       policy_list); 
    452446   } 
    453    catch (PortableServer::POA::AdapterAlreadyExists& ex) 
    454    { 
    455       boost::ignore_unused_variable_warning(ex); 
     447   catch (PortableServer::POA::AdapterAlreadyExists&) 
     448   { 
    456449      status = false; 
    457450      vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL) 
     
    459452         << vprDEBUG_FLUSH; 
    460453   } 
    461    catch (PortableServer::POA::InvalidPolicy& ex) 
    462    { 
    463       boost::ignore_unused_variable_warning(ex); 
     454   catch (PortableServer::POA::InvalidPolicy&) 
     455   { 
    464456      status = false; 
    465457      vprDEBUG(vprDBG_ALL, vprDBG_WARNING_LVL)