]> granicus.if.org Git - postgis/commitdiff
Fix compiler warnings in lwgeom_geos.c
authorSandro Santilli <strk@keybit.net>
Fri, 12 Oct 2012 08:40:40 +0000 (08:40 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 12 Oct 2012 08:40:40 +0000 (08:40 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@10415 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/lwgeom_geos.c

index 9e0c64e2e29a2eeb787d62c3cef79dddadbd5c53..c2d1d4fb18ffcfedb0c1e73a3110be03931a6e75 100644 (file)
@@ -52,7 +52,7 @@ POINTARRAY *
 ptarray_from_GEOSCoordSeq(const GEOSCoordSequence *cs, char want3d)
 {
        uint32_t dims=2;
-       uint32_t size, i, ptsize;
+       uint32_t size, i;
        POINTARRAY *pa;
        POINT4D point;
 
@@ -76,8 +76,6 @@ ptarray_from_GEOSCoordSeq(const GEOSCoordSequence *cs, char want3d)
 
        LWDEBUGF(4, " output dimensions: %d", dims);
 
-       ptsize = sizeof(double)*dims;
-
        pa = ptarray_construct((dims==3), 0, size);
 
        for (i=0; i<size; i++)
@@ -1305,6 +1303,7 @@ lwgeom_delaunay_triangulation(const LWGEOM *lwgeom_in, double tolerance, int edg
 {
 #if POSTGIS_GEOS_VERSION < 34
        lwerror("lwgeom_delaunay_triangulation: GEOS 3.4 or higher required");
+       return NULL;
 #else
        GEOSGeometry *g1, *g3;
        LWGEOM *lwgeom_result;