Boost C++ Libraries: Ticket #7880: unused parameter warnings https://svn.boost.org/trac10/ticket/7880 <p> There's a few methods which produce 'unused parameter' warnings and prevent having warning be treated as errors. </p> <p> I'm attaching a patch that fixes the ones that I've found. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7880 Trac 1.4.3 anonymous Fri, 11 Jan 2013 05:41:08 GMT attachment set https://svn.boost.org/trac10/ticket/7880 https://svn.boost.org/trac10/ticket/7880 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost-unused-param.patch</span> </li> </ul> Ticket Marshall Clow Fri, 11 Jan 2013 05:56:20 GMT <link>https://svn.boost.org/trac10/ticket/7880#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7880#comment:1</guid> <description> <p> Two comments: </p> <p> 1) You should create two tickets, one for spirit and one for tokenizer, and assign them to the maintainers of those libraries. That will help bring them to their attention. Bugs submitted against "boost" (no component) are likely to be missed. </p> <p> 2) A better way to silence these warnings is to "not name" the parameters. </p> <p> Instead of: </p> <pre class="wiki"> grammar_helper_list&amp; operator=(grammar_helper_list const&amp; x) { // Does _not_ copy the helpers member ! (void) x; return *this; } </pre><p> You should write: </p> <pre class="wiki">grammar_helper_list&amp; operator=(grammar_helper_list const&amp;) { // Does _not_ copy the helpers member ! return *this; } </pre> </description> <category>Ticket</category> </item> <item> <author>alex@…</author> <pubDate>Fri, 11 Jan 2013 17:15:12 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/7880#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7880#comment:2</guid> <description> <p> Both comments make sense. I will report two separate bugs in their respective projects and modify my patch according to the suggestion <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> above. Thanks! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Marshall Clow</dc:creator> <pubDate>Fri, 11 Jan 2013 17:18:36 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7880#comment:3 https://svn.boost.org/trac10/ticket/7880#comment:3 <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">wontfix</span> </li> </ul> <p> Thanks. I'm going to close this bug, and wait for the next ones. </p> Ticket