COIN-OR::LEMON - Graph Library

Opened 10 years ago

Closed 10 years ago

#54 closed defect (fixed)

Ignore gcc-4.3 warnings

Reported by: deba Owned by: deba
Priority: minor Milestone: LEMON 1.0 release
Component: core Version: hg main
Keywords: Cc:
Revision id:

Description

The semicolon after directly the closing parse of a for loop emits warning.
Constant non reference return value emits warning.

Attachments (1)

gcc-4.3-warnings.patch (1.7 KB) - added by deba 10 years ago.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by deba

comment:1 Changed 10 years ago by deba

  • Owner changed from alpar to deba
  • Status changed from new to assigned

Solution for ignoring warnings.

comment:2 Changed 10 years ago by alpar

  • Milestone set to LEMON 1.0 release

comment:3 follow-up: Changed 10 years ago by alpar

I suggest postponing this until all of the planned components of release 1.0 is in the repository.

comment:4 in reply to: ↑ 3 ; follow-up: Changed 10 years ago by deba

One new type of data error is introduced in new gcc-4.3:
typedef SomeClass?<Param> SomeClass?;
emits error. It is used quite often in LEMON, but it can be solved with explicit reference to the namespace of SomeClass? template class.

comment:5 in reply to: ↑ 4 Changed 10 years ago by alpar

  • Resolution set to fixed
  • Status changed from assigned to closed

Replying to deba:

One new type of data error is introduced in new gcc-4.3:
typedef SomeClass?<Param> SomeClass?;
emits error. It is used quite often in LEMON, but it can be solved with explicit reference to the namespace of SomeClass? template class.

In fact, it says something like this:

./lemon/bits/bezier.h:35: error: declaration of ‘typedef class lemon::dim2::Point<double> lemon::dim2::BezierBase::Point’
./lemon/dim2.h:53: error: changes meaning of ‘Point’ from ‘class lemon::dim2::Point<double>’

which is clearly stupid. Anyway, [716b220697a0] fixes this error and a couple of others.

I use gcc-4.3 as a default compiler from now on, so I close this ticket.

Note: See TracTickets for help on using tickets.