[Cbc-tickets] [COIN-OR Branch-and-Cut MIP Solver] #71: Various warnings with GCC

COIN-OR Branch-and-Cut MIP Solver coin-trac at coin-or.org
Tue Jun 30 18:13:12 EDT 2009


#71: Various warnings with GCC
-------------------------+--------------------------------------------------
  Reporter:  alpar       |       Owner:  somebody
      Type:  defect      |      Status:  reopened
  Priority:  major       |   Milestone:          
 Component:  component1  |     Version:  2.0     
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by alpar):

  * status:  closed => reopened
  * resolution:  invalid =>

Comment:

 Replying to [comment:2 forrest]:
 > I claim unused warnings are a defect in compiler.

 Even if it were true, it should be fixed, because it is very annoying when
 using the library, and it is also dangerous because the lot irrelevant
 warnings may hide the real one.

 But actually it is the intended behavior of the compiler.

 > These are virtual methods.  Just because a parameter is not used in one
 instantiation, it still has to be in.

 The solution for this is to simply omit the name of the unused parameters,
 e.g. write

 {{{
 virtual int scale(ClpModel *, const ClpSimplex * baseModel=NULL) const
 }}}

 instead of

 {{{
 virtual int scale(ClpModel * model, const ClpSimplex * baseModel=NULL)
 const
 }}}

 Btw. Somehow I didn't get any notification about the update of this
 ticket. Where shall I report this?

-- 
Ticket URL: <https://projects.coin-or.org/Cbc/ticket/71#comment:3>
COIN-OR Branch-and-Cut MIP Solver <http://projects.coin-or.org/Cbc>
An LP-based branch-and-cut MIP solver.



More information about the Cbc-tickets mailing list