Boost C++ Libraries: Ticket #4377: Suppress 'unused variable' warnings in functional.hpp https://svn.boost.org/trac10/ticket/4377 <p> In functional.hpp there are several functions with unused arguments (mostly due to specialized cases). </p> <p> In order to avoid the annoying 'unused variable' compiler warnings, I suggest to comment these unused arguments. </p> <p> In the attachment there is a patch for the functional.hpp file (svn rev. 63303). </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/4377 Trac 1.4.3 Marco Guazzone <marco.guazzone@…> Fri, 25 Jun 2010 09:01:34 GMT attachment set https://svn.boost.org/trac10/ticket/4377 https://svn.boost.org/trac10/ticket/4377 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">functional-suppress_unused_warning.patch</span> </li> </ul> <p> Commented unused function arguments </p> Ticket Marshall Clow Mon, 28 Jun 2010 20:11:19 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/4377#comment:1 https://svn.boost.org/trac10/ticket/4377#comment:1 <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> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/63413" title="Applied patch. Fixes #4377">[63413]</a>) Applied patch. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4377" title="#4377: Patches: Suppress 'unused variable' warnings in functional.hpp (closed: fixed)">#4377</a> </p> Ticket Marco Guazzone <marco.guazzone@…> Fri, 23 Jul 2010 13:02:52 GMT <link>https://svn.boost.org/trac10/ticket/4377#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4377#comment:2</guid> <description> <p> I missed to comment a parameter. </p> <p> In file <em>funcitonal.hpp</em> (line 1868) the function: </p> <div class="wiki-code"><div class="code"><pre><span class="n">size_type</span> <span class="nf">restrict1</span> <span class="p">(</span><span class="n">size_type</span> <span class="n">i</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">j</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">size1</span><span class="p">,</span> <span class="n">size_type</span> <span class="n">size2</span><span class="p">)</span> <span class="p">{</span> <span class="k">return</span> <span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">max</span><span class="p">)(</span><span class="n">j</span><span class="p">,</span> <span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">min</span><span class="p">)</span> <span class="p">(</span><span class="n">size1</span><span class="p">,</span> <span class="n">i</span><span class="p">));</span> <span class="p">}</span> </pre></div></div><p> has a parameter <em>size</em> which is never used. </p> <p> I attach another patch, to be applied after the one I've already uploaded, where that parameter is simply commented. </p> </description> <category>Ticket</category> </item> <item> <author>Marco Guazzone <marco.guazzone@…></author> <pubDate>Fri, 23 Jul 2010 13:03:53 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/4377 https://svn.boost.org/trac10/ticket/4377 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">functional-suppress_unused_warning-2.patch</span> </li> </ul> <p> Patch to comment parameter <em>size2</em> at line 1868 of functional.hpp. </p> Ticket Marshall Clow Fri, 23 Jul 2010 13:45:42 GMT <link>https://svn.boost.org/trac10/ticket/4377#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/4377#comment:3</guid> <description> <p> I've applied the second patch to the trunk. Once the tests have cycled, I'll apply it to the release branch. This close to release, I don't think it will make it into 1.44; look for it in 1.45 </p> </description> <category>Ticket</category> </item> </channel> </rss>