Subject: [Boost-bugs] [Boost C++ Libraries] #7174: Declaration shadows a local variable (hashtable.hpp)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-25 13:23:59
#7174: Declaration shadows a local variable (hashtable.hpp)
---------------------------------------------------------+------------------
Reporter: Alexandre Hamez <alexandre.hamez@â¦> | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: To Be Determined | Component: intrusive
Version: Boost 1.51.0 | Severity: Cosmetic
Keywords: |
---------------------------------------------------------+------------------
When compiling Intrusive with -Wshadow:
{{{
/opt/local/include/boost/intrusive/hashtable.hpp:438:19: warning:
declaration shadows a local variable [-Wshadow]
node_ptr first_in_group =
^
/opt/local/include/boost/intrusive/hashtable.hpp:429:12: note: previous
declaration is here
bool first_in_group = node_traits::get_next(prev_in_group_ptr) !=
to_erase_ptr;
^
/opt/local/include/boost/intrusive/hashtable.hpp:2169:20: warning:
declaration shadows a local variable [-Wshadow]
size_type bucket_len = priv_buckets_len();
^
/opt/local/include/boost/intrusive/hashtable.hpp:2162:17: note: previous
declaration is here
size_type bucket_len = priv_buckets_len();
^
/opt/local/include/boost/intrusive/hashtable.hpp:3016:23: warning:
declaration shadows a local variable [-Wshadow]
bucket_type &b = this->priv_buckets()[bucket_number_second];
^
/opt/local/include/boost/intrusive/hashtable.hpp:2977:20: note: previous
declaration is here
bucket_type &b = this->priv_buckets()[bucket_number_first];
^
3 warnings generated.
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7174> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC