Boost C++ Libraries: Ticket #4018: [PATCH] boost/multi_index gcc warning cleanup https://svn.boost.org/trac10/ticket/4018 <p> Patch to clean up excessive gcc 4.x warning barf. </p> <p> To reproduce, compile any program using property_tree (that by proxy uses multi_index) with: -Wall -Wcast-align -Wconversion -Wdisabled-optimization -Werror=return-type -Wextra -Winit-self -Winvalid-pch -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-multichar -Wpacked -Wredundant-decls -Wshadow -Wswitch-default -Wundef -Wwrite-strings -Wctor-dtor-privacy -Werror=non-virtual-dtor -Woverloaded-virtual </p> <p> Attached patch fixes the issues, except for boost/multi_index_container.hpp, which produces the following: </p> <p> /usr/local/include/boost/multi_index_container.hpp: In member function 'typename boost::multi_index::multi_index_container&lt;Value, <a class="missing wiki">IndexSpecifierList</a>, Allocator&gt;::nth_index_iterator&lt;N&gt;::type boost::multi_index::multi_index_container&lt;Value, <a class="missing wiki">IndexSpecifierList</a>, Allocator&gt;::project(<a class="missing wiki">IteratorType</a>)': </p> <p> /usr/local/include/boost/multi_index_container.hpp:363: warning: declaration of 'index' shadows a member of 'this' </p> <p> As index is not referenced within the four instances of this warning, I refrained from modifying them. If you can fix the issue, I would appreciate it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4018 Trac 1.4.3 Tatu Kilappa <tatu.kilappa@…> Mon, 15 Mar 2010 21:08:32 GMT attachment set https://svn.boost.org/trac10/ticket/4018 https://svn.boost.org/trac10/ticket/4018 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_multi_index_gcc_warning_cleanup.diff</span> </li> </ul> Ticket Joaquín M López Muñoz Fri, 26 Mar 2010 06:54:16 GMT status changed https://svn.boost.org/trac10/ticket/4018#comment:1 https://svn.boost.org/trac10/ticket/4018#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I'm in the middle of refactoring some internal parts of the lib, once I'm done with that I'll address this. Thanks for reporting. </p> Ticket tatu.kilappa@… Mon, 24 May 2010 20:48:36 GMT attachment set https://svn.boost.org/trac10/ticket/4018 https://svn.boost.org/trac10/ticket/4018 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_multi_index_gcc_warning_cleanup.2.diff</span> </li> </ul> <p> Updated patch file for current trunk, also fixes earlier dangling typedef issue. </p> Ticket tatu.kilappa@… Mon, 24 May 2010 20:50:41 GMT <link>https://svn.boost.org/trac10/ticket/4018#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4018#comment:2</guid> <description> <p> I updated the patch to match current trunk. Also took care of the typedef warning. </p> <p> The old patch file is now useless. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joaquín M López Muñoz</dc:creator> <pubDate>Sat, 16 Nov 2013 21:25:40 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/4018#comment:3 https://svn.boost.org/trac10/ticket/4018#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Solved in <a class="ext-link" href="https://svn.boost.org/trac/boost/changeset/86730"><span class="icon">​</span>https://svn.boost.org/trac/boost/changeset/86730</a> </p> Ticket