]> granicus.if.org Git - postgis/commitdiff
Fixed bug making it unbuildable.
authorSandro Santilli <strk@keybit.net>
Mon, 11 Oct 2004 09:46:42 +0000 (09:46 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 11 Oct 2004 09:46:42 +0000 (09:46 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@976 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwcollection.c

index b0db74e05b4792d4a99fa0831bfcdb7a2c3f0755..61e7bf0cdf5648e9251acd6fecb1dc4ec67fa3e0 100644 (file)
@@ -47,7 +47,7 @@ lwcollection_construct(unsigned int type, int SRID, BOX2DFLOAT4 *bbox,
 }
 
 LWCOLLECTION *
-lwcollection_construct_empty(int SRID, char hasZ, char hasM);
+lwcollection_construct_empty(int SRID, char hasz, char hasm)
 {
        LWCOLLECTION *ret;
 
@@ -57,7 +57,7 @@ lwcollection_construct_empty(int SRID, char hasZ, char hasM);
        ret->SRID = SRID;
        ret->ngeoms = 0;
        ret->geoms = NULL;
-       ret->bbox = bbox;
+       ret->bbox = NULL;
 
        return ret;
 }
@@ -295,7 +295,7 @@ lwcollection_segmentize2d(LWCOLLECTION *col, double dist)
 char
 lwcollection_same(const LWCOLLECTION *c1, const LWCOLLECTION *c2)
 {
-       unsigned int i,j;
+       unsigned int i;
 
        if ( TYPE_GETTYPE(c1->type) != TYPE_GETTYPE(c2->type) ) return 0;
        if ( c1->ngeoms != c2->ngeoms ) return 0;