[CoinUtils-tickets] Re: [COIN-OR Common Utilities] #34: compiler warnings

COIN-OR Common Utilities coin-trac at coin-or.org
Thu Jun 21 14:58:41 EDT 2007


#34: compiler warnings
-------------------------+--------------------------------------------------
  Reporter:  mgalati     |       Owner:  ladanyi 
      Type:  defect      |      Status:  assigned
  Priority:  minor       |   Milestone:          
 Component:  component1  |     Version:          
Resolution:              |    Keywords:          
-------------------------+--------------------------------------------------
Changes (by ladanyi):

  * priority:  major => minor
  * status:  new => assigned
  * owner:  somebody => ladanyi

Comment:

 Hi Matt,

 All warnings originate from the fact that size() returns size_t, but these
 vectors return int. In reality, if you are dealing with so large vectors
 that it's size doesn't fit in an int (i.e., more than 2^31 entries) then
 you have bigger problems than this warning :-). Just to quiet the compiler
 try to add a ststic_cast<int> to all the warning locations and let me know
 if that helps. If it does, I'll add the change. For now I'll just leave
 the ticket open, but downgrade it.

 If static_cast does not help, we'll think of something else. I'm reluctant
 to change the return value to size_t, since that will just probably cause
 the same problem elsewhere.

 --Laci

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/34#comment:1>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list