Re: [Boost-bugs] [Boost C++ Libraries] #7880: unused parameter warnings

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7880: unused parameter warnings
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-11 05:56:20


#7880: unused parameter warnings
----------------------------------+-----------------------------------------
  Reporter: alex@… | Owner:
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: None
   Version: Boost 1.52.0 | Severity: Optimization
Resolution: | Keywords:
----------------------------------+-----------------------------------------

Comment (by marshall):

 Two comments:

 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.

 2) A better way to silence these warnings is to "not name" the parameters.

 Instead of:
 {{{

 grammar_helper_list& operator=(grammar_helper_list const& x)
         { // Does _not_ copy the helpers member !
                 (void) x;
                 return *this;
         }
 }}}

 You should write:
 {{{
 grammar_helper_list& operator=(grammar_helper_list const&)
         { // Does _not_ copy the helpers member !
                 return *this;
         }
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7880#comment:1>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC