From 877ea6be50f196ce6f25e555388b7c6b463f075a Mon Sep 17 00:00:00 2001 From: Johnny Willemsen Date: Fri, 7 May 2010 09:07:35 +0000 Subject: Fri May 7 09:07:51 UTC 2010 Johnny Willemsen * examples/Timer_Queue/Custom_Handler.h: * examples/Timer_Queue/Custom_Handler.cpp: Fixed gcc warnings --- ACE/examples/Timer_Queue/Custom_Handler.cpp | 14 +++++++------- ACE/examples/Timer_Queue/Custom_Handler.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ACE/examples/Timer_Queue') diff --git a/ACE/examples/Timer_Queue/Custom_Handler.cpp b/ACE/examples/Timer_Queue/Custom_Handler.cpp index 003c38ccb61..6b518a6a936 100644 --- a/ACE/examples/Timer_Queue/Custom_Handler.cpp +++ b/ACE/examples/Timer_Queue/Custom_Handler.cpp @@ -60,21 +60,21 @@ Custom_Handler::on_timeout (const ACE_Time_Value ¤t_time, return 0; } -int Custom_Handler_Upcall::registration(TTimerQueue& timer_queue, Custom_Handler* handler, const void* arg) +int Custom_Handler_Upcall::registration(TTimerQueue& , Custom_Handler* , const void* ) { ACE_TRACE(ACE_TEXT ("registration")); return 0; } -int Custom_Handler_Upcall::preinvoke(TTimerQueue& timer_queue, Custom_Handler* handler, const void* arg, int recurring_timer, const ACE_Time_Value& cur_time, const void*& upcall_act) +int Custom_Handler_Upcall::preinvoke(TTimerQueue& , Custom_Handler* , const void* , int , const ACE_Time_Value& , const void*& ) { ACE_TRACE(ACE_TEXT ("preinvoke")); return 0; } -int Custom_Handler_Upcall::timeout(TTimerQueue& timer_queue, Custom_Handler* handler, const void* arg, int recurring_timer, const ACE_Time_Value& cur_time) +int Custom_Handler_Upcall::timeout(TTimerQueue& , Custom_Handler* handler, const void* arg, int , const ACE_Time_Value& cur_time) { ACE_TRACE(ACE_TEXT ("timeout")); @@ -84,28 +84,28 @@ int Custom_Handler_Upcall::timeout(TTimerQueue& timer_queue, Custom_Handler* han return 0; } -int Custom_Handler_Upcall::postinvoke(TTimerQueue& timer_queue, Custom_Handler* handler, const void* arg, int recurring_timer, const ACE_Time_Value& cur_time, const void* upcall_act) +int Custom_Handler_Upcall::postinvoke(TTimerQueue& , Custom_Handler* , const void* , int , const ACE_Time_Value& , const void* ) { ACE_TRACE(ACE_TEXT ("postinvoke")); return 0; } -int Custom_Handler_Upcall::cancel_type(TTimerQueue& timer_queue, Custom_Handler* handler, int dont_call, int& requires_reference_counting) +int Custom_Handler_Upcall::cancel_type(TTimerQueue& , Custom_Handler* , int , int& ) { ACE_TRACE(ACE_TEXT ("cancel_type")); return 0; } -int Custom_Handler_Upcall::cancel_timer(TTimerQueue& timer_queue, Custom_Handler* handler, int dont_call, int requires_reference_counting) +int Custom_Handler_Upcall::cancel_timer(TTimerQueue& , Custom_Handler* handler, int , int ) { ACE_TRACE(ACE_TEXT ("cancel_timer")); delete handler; return 0; } -int Custom_Handler_Upcall::deletion(TTimerQueue& timer_queue, Custom_Handler* handler, const void* arg) +int Custom_Handler_Upcall::deletion(TTimerQueue& , Custom_Handler* handler, const void* ) { ACE_TRACE(ACE_TEXT ("deletion")); delete handler; diff --git a/ACE/examples/Timer_Queue/Custom_Handler.h b/ACE/examples/Timer_Queue/Custom_Handler.h index 07948f09419..152fdc20fe5 100644 --- a/ACE/examples/Timer_Queue/Custom_Handler.h +++ b/ACE/examples/Timer_Queue/Custom_Handler.h @@ -40,7 +40,7 @@ class Custom_Handler Custom_Handler (const ACE_Time_Value &expiration_time); - ~Custom_Handler (void); + virtual ~Custom_Handler (void); // Set the custom handler's id void set_id (int id); -- cgit v1.2.1