Boost C++ Libraries: Ticket #1464: boost_range_array unused in several array_size() functions https://svn.boost.org/trac10/ticket/1464 <p> The boost_range_array parameter is not used in several overloads of array_size() in range/details/implementation_help.hpp - this generates warnings and halts our builds. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1464 Trac 1.4.3 Thorsten Ottosen Mon, 03 Dec 2007 09:02:43 GMT status changed https://svn.boost.org/trac10/ticket/1464#comment:1 https://svn.boost.org/trac10/ticket/1464#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> Please submit a patch </p> <p> Thanks </p> <p> -Thorsten </p> Ticket Thorsten Ottosen Tue, 04 Dec 2007 14:48:11 GMT <link>https://svn.boost.org/trac10/ticket/1464#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1464#comment:2</guid> <description> <p> I don't really no how to silence this warning, so I'd really appreciate a patch. </p> <p> Thanks </p> <p> -Thorsten </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Thorsten Ottosen</dc:creator> <pubDate>Thu, 07 Feb 2008 14:40:33 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1464#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1464#comment:3</guid> <description> <p> I have now added a test that run for normal compilers. Neither vc8 nor gcc gives me any warnings. What compiler are you getting warnings with? </p> <p> -Thorsten </p> </description> <category>Ticket</category> </item> <item> <author>sparent@…</author> <pubDate>Thu, 07 Feb 2008 20:31:13 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1464#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1464#comment:4</guid> <description> <p> gcc with -Wunused or -Wall (you can ask Mat Marcus for the bjam file if you would like) - our teams compile with all warnings on and warnings as errors. Here is the patch. </p> <p> Sean </p> <hr /> <p> p4 diff '<em>boost_libraries/boost/range/detail/implementation_help.hpp<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a>' </em></p> <h4 class="section" id="boost_librariesboostrangedetailimplementation_help.hpp3-Userssparentdevelopmentprojectsboost_librariesboostrangedetailimplementation_help.hpp"><em>boost_libraries/boost/range/detail/implementation_help.hpp<a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> - /Users/sparent/development/projects/boost_libraries/boost/range/detail/implementation_help.hpp</em></h4> <p> 112a113,120 </p> <blockquote class="citation"> <blockquote> <p> /* </p> <blockquote> <p> ADOBE (sparent@…) 1464 : Using unused parameter to silence warnings. </p> </blockquote> <p> */ template &lt;typename T&gt; inline void adobe_boost_range_size_unused(const T&amp;) { } /* </p> <blockquote> <p> END ADOBE </p> </blockquote> <p> */ </p> </blockquote> </blockquote> <p> 116a125,131 </p> <blockquote class="citation"> <blockquote> <p> /* </p> <blockquote> <p> ADOBE (sparent@…) 1464 : Using unused parameter to silence warnings. </p> </blockquote> <p> */ </p> <blockquote> <p> adobe_boost_range_size_unused(boost_range_array); </p> </blockquote> <p> /* </p> <blockquote> <p> END ADOBE </p> </blockquote> <p> */ </p> </blockquote> </blockquote> <p> 122a138,144 </p> <blockquote class="citation"> <blockquote> <p> /* </p> <blockquote> <p> ADOBE (sparent@…) 1464 : Using unused parameter to silence warnings. </p> </blockquote> <p> */ </p> <blockquote> <p> adobe_boost_range_size_unused(boost_range_array); </p> </blockquote> <p> /* </p> <blockquote> <p> END ADOBE </p> </blockquote> <p> */ </p> </blockquote> </blockquote> <p> 128a151,157 </p> <blockquote class="citation"> <blockquote> <p> /* </p> <blockquote> <p> ADOBE (sparent@…) 1464 : Using unused parameter to silence warnings. </p> </blockquote> <p> */ </p> <blockquote> <p> adobe_boost_range_size_unused(boost_range_array); </p> </blockquote> <p> /* </p> <blockquote> <p> END ADOBE </p> </blockquote> <p> */ </p> </blockquote> </blockquote> <p> 134a164,170 </p> <blockquote class="citation"> <blockquote> <p> /* </p> <blockquote> <p> ADOBE (sparent@…) 1464 : Using unused parameter to silence warnings. </p> </blockquote> <p> */ </p> <blockquote> <p> adobe_boost_range_size_unused(boost_range_array); </p> </blockquote> <p> /* </p> <blockquote> <p> END ADOBE </p> </blockquote> <p> */ </p> </blockquote> </blockquote> </description> <category>Ticket</category> </item> <item> <author>sparent@…</author> <pubDate>Thu, 07 Feb 2008 20:33:48 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/1464#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1464#comment:5</guid> <description> <p> Sorry - wiki ate that... </p> <pre class="wiki">p4 diff '//boost_libraries/boost/range/detail/implementation_help.hpp#3' ==== //boost_libraries/boost/range/detail/implementation_help.hpp#3 - /Users/sparent/development/projects/boost_libraries/boost/range/detail/implementation_help.hpp ==== 112a113,120 &gt; /* &gt; ADOBE (sparent@adobe.com) 1464 : Using unused parameter to silence warnings. &gt; */ &gt; template &lt;typename T&gt; &gt; inline void adobe_boost_range_size_unused(const T&amp;) { } &gt; /* &gt; END ADOBE &gt; */ 116a125,131 &gt; /* &gt; ADOBE (sparent@adobe.com) 1464 : Using unused parameter to silence warnings. &gt; */ &gt; adobe_boost_range_size_unused(boost_range_array); &gt; /* &gt; END ADOBE &gt; */ 122a138,144 &gt; /* &gt; ADOBE (sparent@adobe.com) 1464 : Using unused parameter to silence warnings. &gt; */ &gt; adobe_boost_range_size_unused(boost_range_array); &gt; /* &gt; END ADOBE &gt; */ 128a151,157 &gt; /* &gt; ADOBE (sparent@adobe.com) 1464 : Using unused parameter to silence warnings. &gt; */ &gt; adobe_boost_range_size_unused(boost_range_array); &gt; /* &gt; END ADOBE &gt; */ 134a164,170 &gt; /* &gt; ADOBE (sparent@adobe.com) 1464 : Using unused parameter to silence warnings. &gt; */ &gt; adobe_boost_range_size_unused(boost_range_array); &gt; /* &gt; END ADOBE &gt; */ </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Thorsten Ottosen</dc:creator> <pubDate>Fri, 08 Feb 2008 10:00:09 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1464#comment:6 https://svn.boost.org/trac10/ticket/1464#comment:6 <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> Fix in trunk. </p> Ticket