From 81ab1a7584064aa94befae51f8c98bb6d9ecdb4a Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 13 Apr 2014 23:46:54 +0200 Subject: [PATCH] crc: fix GCC -Wshadow warnings Signed-off-by: Michael Stahl --- include/boost/crc.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/crc.hpp b/include/boost/crc.hpp index 6be5aa1..e21fbc1 100644 --- a/include/boost/crc.hpp +++ b/include/boost/crc.hpp @@ -755,15 +755,15 @@ void crc_basic::process_bits ( unsigned char bits, - std::size_t bit_count + std::size_t bit_count_ ) { // ignore the bits above the ones we want - bits <<= CHAR_BIT - bit_count; + bits <<= CHAR_BIT - bit_count_; // compute the CRC for each bit, starting with the upper ones unsigned char const high_bit_mask = 1u << ( CHAR_BIT - 1u ); - for ( std::size_t i = bit_count ; i > 0u ; --i, bits <<= 1u ) + for ( std::size_t i = bit_count_ ; i > 0u ; --i, bits <<= 1u ) { process_bit( static_cast(bits & high_bit_mask) ); } -- 1.8.3.1