Boost C++ Libraries: Ticket #670: [archive] Fix unused parameter warning https://svn.boost.org/trac10/ticket/670 <pre class="wiki">Hi! The function parameter to `bool tracking(const unsigned int flags) const' in `archive/detail/oserializer.hpp' is currently unused. The attached trivial patch against HEAD[1] fixes this. Regards Christian [1] http://boost.cvs.sourceforge.net/*checkout*/boost/boost/boost/archive/detail/oserializer.hpp </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/670 Trac 1.4.3 schlotter Mon, 26 Jun 2006 18:21:09 GMT <link>https://svn.boost.org/trac10/ticket/670#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/670#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=1440711 Robert, coincidental I saw your reply on the mailing list archives. Robert Ramey wrote: &gt; Hmm - looks like its used to me. &gt; &gt; C:\BoostHead\libs\serialization\src\basic_oarchive.cpp(259): &gt; ar.vsave(tracking_type(bos.tracking(m_flags))); &gt; C:\BoostHead\libs\serialization\src\basic_oarchive.cpp(266): if(! &gt; bos.tracking(m_flags)){ &gt; C:\BoostHead\libs\serialization\src\basic_oarchive.cpp(342): &gt; ar.vsave(tracking_type(bos.tracking(m_flags))); &gt; C:\BoostHead\libs\serialization\src\basic_oarchive.cpp(352): if(! &gt; bos.tracking(m_flags)){ &gt; C:\BoostHead\libs\serialization\src\basic_xml_grammar.ipp(355): &gt;&gt; uint_p &gt; [assign_level(rv.tracking_level)] For convenience, the function definition we're talking about: virtual bool tracking(const unsigned int flags) const { // if(0 != (flags &amp; no_tracking)) // return false; return boost::serialization::tracking_level&lt;T&gt;::value == boost::serialization::track_always || boost::serialization::tracking_level&lt;T&gt;::value == boost::serialization::track_selectivly &amp;&amp; serialized_as_pointer(); } As you can see, the part which uses the parameter is commented out. So, the parameter may be used, but it is ignored in the function body. Regards Christian </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>schlotter</dc:creator> <pubDate>Fri, 30 Jun 2006 04:59:03 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/670#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/670#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=1440711 I just noticed that I missed a similar warning. The second attached patch fixes this too. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>schlotter</dc:creator> <pubDate>Wed, 30 Aug 2006 08:46:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/670#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/670#comment:3</guid> <description> <pre class="wiki">Logged In: YES user_id=1440711 Robert Ramey wrote: OK - I've applied the patches to my local copy which will be uploaded to CVS/Head. Sorry this won't show up in boost until version 1.35. So if this is important to you, you should patch your own copy. Robert Ramey </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>schlotter</dc:creator> <pubDate>Wed, 30 Aug 2006 08:47:24 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/670#comment:4 https://svn.boost.org/trac10/ticket/670#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> Ticket