Subject: [Boost-bugs] [Boost C++ Libraries] #1748: [ptr_container] compiler warnings from VC9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-01 21:58:43
#1748: [ptr_container] compiler warnings from VC9
---------------------------------------------------------+------------------
Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: nesotto
Type: Bugs | Status: new
Milestone: To Be Determined | Component: ptr_container
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: |
---------------------------------------------------------+------------------
running the ptr_container tests on VC9 with warning level 4 produces quite
a few warnings:
{{{
boost/ptr_container/ptr_array.hpp(39) : warning C4100: 'a' : unreferenced
formal parameter
boost/ptr_container/detail/serialize_reversible_cont.hpp(69) : warning
C4100: 'version' : unreferenced formal parameter
boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(20) : warning
C4100: 'version' : unreferenced formal parameter
boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(38) : warning
C4100: 'version' : unreferenced formal parameter
boost/ptr_container/detail/serialize_ptr_map_adapter.hpp(61) : warning
C4100: 'version' : unreferenced formal parameter
boost/ptr_container/serialize_ptr_vector.hpp(19) : warning C4100:
'version' : unreferenced formal parameter
boost/ptr_container/serialize_ptr_array.hpp(19) : warning C4100: 'version'
: unreferenced formal parameter
boost/ptr_container/serialize_ptr_array.hpp(25) : warning C4100: 'version'
: unreferenced formal parameter
boost/ptr_container/clone_allocator.hpp(77) : warning C4100: 'r' :
unreferenced formal parameter
boost/ptr_container/ptr_map_adapter.hpp(134) : warning C4127: conditional
expression is constant
boost/ptr_container/detail/map_iterator.hpp(50) : warning C4512:
'boost::ptr_container_detail::ref_pair<F,S>' : assignment operator could
not be generated
boost/ptr_container/ptr_map_adapter.hpp(156) : warning C4512:
'boost::ptr_container_detail::ptr_map_adapter_base<T,VoidPtrMap,CloneAllocator>::eraser'
: assignment operator could not be generated
}}}
The attached patch silences the 4100/4512 warnings for me.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1748>
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:49:57 UTC