COIN-OR::LEMON - Graph Library

Opened 11 years ago

Closed 10 years ago

#54 closed defect (fixed)

Ignore gcc-4.3 warnings

Reported by: Balazs Dezso Owned by: Balazs Dezso
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 Balazs Dezso 11 years ago.

Download all attachments as: .zip

Change History (6)

Changed 11 years ago by Balazs Dezso

Attachment: gcc-4.3-warnings.patch added

comment:1 Changed 11 years ago by Balazs Dezso

Owner: changed from Alpar Juttner to Balazs Dezso
Status: newassigned

Solution for ignoring warnings.

comment:2 Changed 11 years ago by Alpar Juttner

Milestone: LEMON 1.0 release

comment:3 Changed 11 years ago by Alpar Juttner

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

comment:4 in reply to:  3 ; Changed 11 years ago by Balazs Dezso

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 Juttner

Resolution: fixed
Status: assignedclosed

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.