From b091ea2c7106bf0f05b9d40dca7effac23595a77 Mon Sep 17 00:00:00 2001 From: Guilherme Maciel Ferreira Date: Wed, 21 Dec 2011 08:09:19 -0200 Subject: [PATCH] PC-Lint warnings fixed: - Info 1705: static class members may be accessed by the scoping operator; - Info 732: Loss of sign (arg. no. 1) (int to unsigned int) in 'byte = Payload[ header_byte_index ]'; - Warning 534: Ignoring return value of function 'MessagePayload::read(...)'. --- src/ip/ipv6header.cpp | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ip/ipv6header.cpp b/src/ip/ipv6header.cpp index be6227b..78ffaeb 100644 --- a/src/ip/ipv6header.cpp +++ b/src/ip/ipv6header.cpp @@ -124,9 +124,9 @@ uint8_t Ipv6Header::get_hop_limit() const address_v6 Ipv6Header::get_source_address() const { address_v6::bytes_type address; // 16 bytes - BOOST_ASSERT( 16 == address.size() ); + BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); - int header_byte_index = 8; + size_t header_byte_index = 8; BOOST_FOREACH( unsigned char &byte, address ) { byte = Payload[ header_byte_index ]; @@ -148,9 +148,9 @@ address_v6 Ipv6Header::get_source_address() const address_v6 Ipv6Header::get_destination_address() const { address_v6::bytes_type address; // 16 bytes - BOOST_ASSERT( 16 == address.size() ); + BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); - int header_byte_index = 24; + size_t header_byte_index = 24; BOOST_FOREACH( unsigned char &byte, address ) { byte = Payload[ header_byte_index ]; @@ -169,7 +169,7 @@ istream &operator>>( { // read the first 40 bytes (mandatory for IPv6 header) from the input stream // and stores in the buffer object - header.Payload.read( is ); + (void) header.Payload.read( is ); if ( header.get_version() != 6 ) { -- 1.7.1