Boost C++ Libraries: Ticket #1747: [serialization] unreferenced formal parameter warnings from VC9 https://svn.boost.org/trac10/ticket/1747 <p> Running the serialization tests on VC9 (visual studio 2008) with warning level 4 results in large numbers of C4100 "unreferenced formal parameter" warnings: </p> <pre class="wiki">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 </pre><p> and a few 4512 "assignment operator could not be generated" as well: </p> <pre class="wiki">boost/serialization/array.hpp(56) : warning C4512: 'boost::serialization::array&lt;T&gt;' : assignment operator could not be generated boost/archive/basic_streambuf_locale_saver.hpp(54) : warning C4512: 'boost::archive::basic_streambuf_locale_saver&lt;Ch,Tr&gt;' : assignment operator could not be generated boost/serialization/binary_object.hpp(59) : warning C4512: 'boost::serialization::binary_object' : assignment operator could not be generated </pre><p> The attached patches clean up most of these for me. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1747 Trac 1.4.3 Richard Webb <richard.webb@…> Tue, 01 Apr 2008 19:38:56 GMT attachment set https://svn.boost.org/trac10/ticket/1747 https://svn.boost.org/trac10/ticket/1747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">serial.diff</span> </li> </ul> Ticket Richard Webb <richard.webb@…> Tue, 01 Apr 2008 19:40:06 GMT attachment set https://svn.boost.org/trac10/ticket/1747 https://svn.boost.org/trac10/ticket/1747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">archive.patch</span> </li> </ul> Ticket Richard Webb <richard.webb@…> Tue, 01 Apr 2008 19:41:16 GMT attachment set https://svn.boost.org/trac10/ticket/1747 https://svn.boost.org/trac10/ticket/1747 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">serial_src.patch</span> </li> </ul> Ticket Robert Ramey Mon, 07 Apr 2008 16:24:56 GMT status changed https://svn.boost.org/trac10/ticket/1747#comment:1 https://svn.boost.org/trac10/ticket/1747#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Nice job. I'll roll in these changes when I get the time. </p> <p> Robert Ramey </p> Ticket Robert Ramey Sun, 08 Jun 2008 04:05:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/1747#comment:2 https://svn.boost.org/trac10/ticket/1747#comment:2 <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> I rolled in thes changes. </p> <p> I didn't do the ones related the the assigments. I don't think I want to declare a function that is never called (or can't be called). I'm not sure what the warning means. </p> <p> Robert Ramey </p> Ticket