#1748 closed Bugs (fixed)
[ptr_container] compiler warnings from VC9
Reported by: | Owned by: | Thorsten Ottosen | |
---|---|---|---|
Milestone: | To Be Determined | Component: | ptr_container |
Version: | Boost Development Trunk | Severity: | Cosmetic |
Keywords: | Cc: |
Description
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.
Attachments (2)
Change History (5)
by , 15 years ago
Attachment: | ptr_container.patch added |
---|
comment:1 by , 15 years ago
by , 15 years ago
Attachment: | ptr_container_src.patch added |
---|
comment:3 by , 11 years ago
Warning
boost/ptr_container/detail/map_iterator.hpp(50) : warning C4512: 'boost::ptr_container_detail::ref_pair<F,S>' : assignment operator could not be generated
is still available. I tried to add no-compilable method operator= to ref_pair structure and it does work.
Note:
See TracTickets
for help on using tickets.
Theres also a few warnings from the tests themselves.
Seperate patch attached.