Opened 12 years ago

Closed 12 years ago

#4847 closed defect (fixed)

OGRGeometryTypeToName() warnings/errors

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: OGR_SF Version: 1.9.1
Severity: normal Keywords:
Cc:

Description

In OGRGeometryTypeToName() the cast of eType to (int) is triggering failures in my GOOG build of GDAL 1.9.2. This seems problematic since some of the values exceed the range of "int", like wkbGeometryCollection25D. I get:

third_party/gdal/v1_9_2/ogr/ogrgeometry.cpp:1657:12: error: case value evaluates to 2147483655, which cannot be narrowed to type 'int' [-Wc++11-narrowing]
       case wkbGeometryCollection25D:

Change History (2)

comment:1 by warmerdam, 12 years ago

Applied an apparent fix in trunk (r25038). If more confident of it I may yet backport to 1.9 branch.

comment:2 by warmerdam, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.