Subject: [Boost-bugs] [Boost C++ Libraries] #1747: [serialization] unreferenced formal parameter warnings from VC9
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-01 19:38:46
#1747: [serialization] unreferenced formal parameter warnings from VC9
---------------------------------------------------------+------------------
Reporter: Richard Webb <richard.webb_at_[hidden]> | Owner: ramey
Type: Bugs | Status: new
Milestone: To Be Determined | Component: serialization
Version: Boost Development Trunk | Severity: Cosmetic
Keywords: |
---------------------------------------------------------+------------------
Running the serialization tests on VC9 (visual studio 2008) with warning
level 4 results in large numbers of C4100 "unreferenced formal parameter"
warnings:
{{{
boost/serialization/extended_type_info.hpp(45) : warning C4100: 'rhs' :
unreferenced formal parameter
boost/serialization/extended_type_info.hpp(50) : warning C4100: 'rhs' :
unreferenced formal parameter
boost/serialization/extended_type_info.hpp(78) : warning C4100: 'count' :
unreferenced formal parameter
boost/serialization/extended_type_info.hpp(82) : warning C4100: 'p' :
unreferenced formal parameter
boost/serialization/deque.hpp(46) : warning C4100: 'file_version' :
unreferenced formal parameter
boost/serialization/export.hpp(118) : warning C4100: 'key' : unreferenced
formal parameter
boost/serialization/valarray.hpp(40) : warning C4100: 'file_version' :
unreferenced formal parameter
boost/serialization/variant.hpp(67) : warning C4100: 'version' :
unreferenced formal parameter
boost/serialization/variant.hpp(85) : warning C4100: 'version' :
unreferenced formal parameter
boost/serialization/variant.hpp(83) : warning C4100: 'v' : unreferenced
formal parameter
boost/serialization/variant.hpp(82) : warning C4100: 'which' :
unreferenced formal parameter
boost/serialization/variant.hpp(81) : warning C4100: 'ar' : unreferenced
formal parameter
boost/archive/array/iarchive.hpp(69) : warning C4100: 'version' :
unreferenced formal parameter
boost/archive/detail/common_oarchive.hpp(66) : warning C4100: 'name' :
unreferenced formal parameter
boost/archive/detail/common_oarchive.hpp(67) : warning C4100: 'name' :
unreferenced formal parameter
boost/archive/detail/common_iarchive.hpp(63) : warning C4100: 'name' :
unreferenced formal parameter
boost/archive/detail/common_iarchive.hpp(64) : warning C4100: 'name' :
unreferenced formal parameter
//
libs\serialization\src\codecvt_null.cpp(22) : warning C4100: 'state' :
unreferenced formal parameter
libs\serialization\src\codecvt_null.cpp(50) : warning C4100: 'state' :
unreferenced formal parameter
}}}
and a few 4512 "assignment operator could not be generated" as well:
{{{
boost/serialization/array.hpp(56) : warning C4512:
'boost::serialization::array<T>' : assignment operator could not be
generated
boost/archive/basic_streambuf_locale_saver.hpp(54) : warning C4512:
'boost::archive::basic_streambuf_locale_saver<Ch,Tr>' : assignment
operator could not be generated
boost/serialization/binary_object.hpp(59) : warning C4512:
'boost::serialization::binary_object' : assignment operator could not be
generated
}}}
The attached patches clean up most of these for me.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1747>
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