diff options
author | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-20 13:40:49 +0000 |
---|---|---|
committer | cdgill <cdgill@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2000-04-20 13:40:49 +0000 |
commit | e34fd7cafe24dfd2386470b9a19343e6ffc26e18 (patch) | |
tree | ca6a7ac3fbf49c2071b8ff9733e1d920402061e8 /examples | |
parent | 8fa41a50c5d6e042465f506dc7a8bf2c2cdaa59b (diff) | |
download | ATCD-e34fd7cafe24dfd2386470b9a19343e6ffc26e18.tar.gz |
fixed warnings from g++
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Bounded_Packet_Relay/BPR_Drivers_T.h | 2 | ||||
-rw-r--r-- | examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp | 26 |
2 files changed, 9 insertions, 19 deletions
diff --git a/examples/Bounded_Packet_Relay/BPR_Drivers_T.h b/examples/Bounded_Packet_Relay/BPR_Drivers_T.h index 8ad1b48564c..4d0ca6bdfb4 100644 --- a/examples/Bounded_Packet_Relay/BPR_Drivers_T.h +++ b/examples/Bounded_Packet_Relay/BPR_Drivers_T.h @@ -57,7 +57,7 @@ public: Bounded_Packet_Relay_Driver (void); // Constructor. - ~Bounded_Packet_Relay_Driver (void); + virtual ~Bounded_Packet_Relay_Driver (void); // Destructor. virtual int parse_commands (const char *buf); diff --git a/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp b/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp index 98e822e7eab..ebe891845da 100644 --- a/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp +++ b/examples/Bounded_Packet_Relay/Thread_Bounded_Packet_Relay.cpp @@ -487,13 +487,8 @@ BPR_Handler_Base::~BPR_Handler_Base (void) // Helper method: clears all timers. int -BPR_Handler_Base::clear_all_timers (void *arg) +BPR_Handler_Base::clear_all_timers (void *) { - // Macro to avoid compiler warnings on some platforms. This - // is a command accessible method, which necessitates passing - // a void pointer to a potential command argument. - ACE_UNUSED_ARG (arg); - // Loop through the timers in the queue, cancelling each one. for (ACE_Timer_Node_T <ACE_Event_Handler *> *node; @@ -531,8 +526,8 @@ Send_Handler::~Send_Handler (void) // Call back hook. int -Send_Handler::handle_timeout (const ACE_Time_Value ¤t_time, - const void *arg) +Send_Handler::handle_timeout (const ACE_Time_Value &, + const void *) { switch (relay_.send_input ()) { @@ -553,7 +548,7 @@ Send_Handler::handle_timeout (const ACE_Time_Value ¤t_time, } else { - // All packets are sent, time to end the transmission, redisplay + // All packets are sent, time to end the transmission, redisplay // the user menu, cancel any other timers, and go away. relay_.end_transmission (Bounded_Packet_Relay::COMPLETED); driver_.display_menu (); @@ -584,13 +579,8 @@ Send_Handler::cancelled (void) // Helper method: re-registers this timer int -Send_Handler::reregister (void *arg) +Send_Handler::reregister (void *) { - // Macro to avoid compiler warnings on some platforms. This - // is a command accessible method, which necessitates passing - // a void pointer to a potential command invocation argument. - ACE_UNUSED_ARG (arg); - // Re-register the handler for a new timeout. if (queue_.schedule (this, 0, @@ -623,10 +613,10 @@ Termination_Handler::~Termination_Handler (void) // Call back hook. int -Termination_Handler::handle_timeout (const ACE_Time_Value ¤t_time, - const void *arg) +Termination_Handler::handle_timeout (const ACE_Time_Value &, + const void *) { - // Transmission timed out, so end the transmission, display the user + // Transmission timed out, so end the transmission, display the user // menu, and register a callback to clear the timer queue and then // make this object go away. relay_.end_transmission (Bounded_Packet_Relay::TIMED_OUT); |