Subject: [Boost-bugs] [Boost C++ Libraries] #4018: [PATCH] boost/multi_index gcc warning cleanup
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-15 21:08:19
#4018: [PATCH] boost/multi_index gcc warning cleanup
---------------------------------------------------+------------------------
Reporter: Tatu Kilappa <tatu.kilappa@â¦> | Owner: joaquin
Type: Patches | Status: new
Milestone: Boost 1.43.0 | Component: multi_index
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: gcc warning |
---------------------------------------------------+------------------------
Patch to clean up excessive gcc 4.x warning barf.
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
Attached patch fixes the issues, except for
boost/multi_index_container.hpp, which produces the following:
/usr/local/include/boost/multi_index_container.hpp: In member function
'typename boost::multi_index::multi_index_container<Value,
IndexSpecifierList, Allocator>::nth_index_iterator<N>::type
boost::multi_index::multi_index_container<Value, IndexSpecifierList,
Allocator>::project(IteratorType)':
/usr/local/include/boost/multi_index_container.hpp:363: warning:
declaration of 'index' shadows a member of 'this'
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4018> 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:02 UTC