// Hide "Location cited in prior message", emitted by BOOST_FOREACH
-e830
+// Ignore return value of std::copy
+-esym(534, std::copy)
+
// Set up include directories
--isrc
--ilib/boost-custom
}
void Configuration::set_daemon( bool daemon )
-{
+{ //lint !e578
Daemon = daemon;
}
BOOST_ASSERT( PayloadSizeInBytes == other.PayloadSizeInBytes );
- return *this;
+ return *this; //lint !e429
}
/**
BOOST_ASSERT( offset < PayloadSizeInBytes );
return Payload[ offset ];
-}
+} //lint !e1762
/**
* @brief Get a pointer to the underlying array.
*/
Pinger& Pinger::operator=( const Pinger & )
{
+ // TODO: Not implemented at all? Then disable it in the class definition
return *this;
}
new TcpPinger( io_serv, tcp_raw_protocol::v6(), network_interface, ping_reply_timeout_in_sec )
);
default:
- BOOST_ASSERT( !"Try to create a pinger from an invalid protocol" );
- return shared_ptr<Pinger>();
+ BOOST_ASSERT( !"Try to create a pinger from an invalid protocol" ); //lint !e506
+ return shared_ptr<Pinger>(); //lint !e527
}
}
catch ( const system_error &ex )
exit( EXIT_FAILURE );
}
- return shared_ptr<Pinger>();
+ return shared_ptr<Pinger>(); //lint !527
}
setup_next_ping();
// event processing loop, it is a blocking call!
- IoService.run();
+ IoService.run(); //lint !e534
return true;
}
*/
IcmpMessage& IcmpMessage::operator=( const IcmpMessage & )
{
+ // TODO: Not implemented at all. Fix it or disable it
return *this;
}
*/
IcmpPacket& IcmpPacket::operator=( const IcmpPacket & )
{
+ // TODO: Not implemented at all. Fix it or disable it
return *this;
}
set_ping_status( PingStatus_SuccessReply );
- IcmpPacketReceiveTimer.cancel();
+ IcmpPacketReceiveTimer.cancel(); //lint !e534
}
else if ( icmp_packet->match_destination_unreachable(
Identifier, SequenceNumber,
set_ping_status( PingStatus_FailureDestinationUnreachable );
- IcmpPacketReceiveTimer.cancel();
+ IcmpPacketReceiveTimer.cancel(); //lint !e534
}
// Unknown ICMP reply, start another receive till timeout
else
return ( type_match && identifier_match && seq_num_match && address_match );
#else
+ // Silence compiler warning
+ (void)source_address;
+
return ( type_match && identifier_match && seq_num_match );
#endif
}
// removed from the list?
BOOST_ASSERT( HostsDownList.count( host_address ) == 0 );
-}
+} //lint !e1788
/**
* @brief Notify the system that a given host is down. The object takes an
// inserted in the list?
BOOST_ASSERT( HostsDownList.count( host_address ) == 1 );
-}
+} //lint !e1788
void LinkStatusAnalyzer::add_host_up( const string &host_address )
{
set_ping_status( PingStatus_SuccessReply );
- TcpSegmentReceiveTimer.cancel();
+ TcpSegmentReceiveTimer.cancel(); //lint !e534
}
// Unknown TCP reply, start another receive till timeout
else
*/
TcpSegment& TcpSegment::operator=( const TcpSegment & )
{
+ // TODO: Not implemented at all. Fix it or disable it.
return *this;
}
-