Opened 18 years ago

Last modified 16 years ago

#64 closed defect (fixed)

Not all control paths return a value in geos::geom::Geometry::getClassSortIndex

Reported by: mloskot Owned by: strk@…
Priority: major Milestone:
Component: Core Version: 3.0.0
Severity: Significant Keywords: imported, phpbugtracker
Cc:

Description (last modified by mloskot)

Following warning message explains the problem:

geossourcegeomgeometry.cpp(611) : warning C4715: 'geos::geom::Geometry::getClassSortIndex' : not all control paths return a value

There is assert(0) but asserts are turned off when GEOS is compiled in release mode, so I suspect undefined behaviour for unsupported types of geometry: return value will be uninitialized int value!!!

Change History (2)

comment:1 by strk@…, 18 years ago

Resolution: nonefixed

comment:2 by mloskot, 16 years ago

Description: modified (diff)
Milestone: imported
Priority: 3major
Reporter: changed from mateusz@… to mloskot
Severity: UnassignedSignificant
Note: See TracTickets for help on using tickets.