Boost C++ Libraries: Ticket #7174: Declaration shadows a local variable (hashtable.hpp) https://svn.boost.org/trac10/ticket/7174 <p> When compiling Intrusive with -Wshadow: </p> <pre class="wiki">/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 &amp;b = this-&gt;priv_buckets()[bucket_number_second]; ^ /opt/local/include/boost/intrusive/hashtable.hpp:2977:20: note: previous declaration is here bucket_type &amp;b = this-&gt;priv_buckets()[bucket_number_first]; ^ 3 warnings generated. </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7174 Trac 1.4.3 Ion Gaztañaga Mon, 03 Dec 2012 17:19:35 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/7174#comment:1 https://svn.boost.org/trac10/ticket/7174#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> All -Wshadow warnings removed in trunk and release branches. Thanks for the report. </p> Ticket