Opened 18 years ago

Last modified 17 years ago

#64 closed defect (fixed)

Not all control paths return a value in geos::geom::Geometry::getClassSortIndex — at Initial Version

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

Description

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 (0)

Note: See TracTickets for help on using tickets.