Boost C++ Libraries: Ticket #3206: compiler warnings in VC9 https://svn.boost.org/trac10/ticket/3206 <p> VC9 at warning level 4 produces the following simple to fix compiler warnings: </p> <p> line 528 of channel.hpp: Casting the result of the returned expression to the function's return type will silence warnings about conversion to a smaller type. </p> <p> line 451 of algorithm.hpp: Changing this line to read as follows will silence unused local variable warnings: </p> <p> void destruct_range_impl(It /*first*/, It /*last*/, mpl::false_) {} </p> <p> line 586 of algorithm.hpp: Changing this line to read as follows will silence unused local variable warnings: </p> <p> void default_construct_range_impl(It /*first*/, It /*last*/, mpl::false_) {} </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3206 Trac 1.4.3 Hailin Jin Mon, 06 Jul 2009 20:47:55 GMT <link>https://svn.boost.org/trac10/ticket/3206#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3206#comment:1</guid> <description> <p> The last two were fixed in Revision 54727 </p> </description> <category>Ticket</category> </item> <item> <author>mloskot <mateusz@…></author> <pubDate>Sat, 03 Oct 2009 21:40:49 GMT</pubDate> <title>cc set https://svn.boost.org/trac10/ticket/3206#comment:2 https://svn.boost.org/trac10/ticket/3206#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">mateusz@…</span> added </li> </ul> Ticket mloskot <mateusz@…> Sat, 03 Oct 2009 21:46:53 GMT <link>https://svn.boost.org/trac10/ticket/3206#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3206#comment:3</guid> <description> <p> I think it's preferred to solve this kind of issues using [source:trunk/boost/concept_check.hpp@48821#L45 boost::ignore_unused_variable_warning] sink: </p> <pre class="wiki">#include &lt;boost/concept_check.hpp&gt; void destruct_range_impl(It first, It last, mpl::false_) { boost::ignore_unused_variable_warning(first); boost::ignore_unused_variable_warning(last); } </pre><p> It's also more self-documenting about explicit author's intentions. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>chhenning</dc:creator> <pubDate>Thu, 05 Aug 2010 19:57:50 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3206#comment:4 https://svn.boost.org/trac10/ticket/3206#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> The code changes have a done a while ago. Closing this ticket. </p> Ticket