]> granicus.if.org Git - postgis/commitdiff
Quiet un-used variable warnings
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Oct 2017 16:47:53 +0000 (16:47 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 11 Oct 2017 16:47:53 +0000 (16:47 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15968 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/geobuf.c
postgis/geography_centroid.c
postgis/gserialized_gist_2d.c
postgis/lwgeom_functions_basic.c
postgis/mvt.c

index 7340ccc8047c784afd16c54daf3b3856bfd2b4cc..be06a983f6eb1fb74b5efff65fb0c52e11def521 100644 (file)
@@ -564,7 +564,7 @@ void geobuf_agg_transfn(struct geobuf_agg_context *ctx)
        bool isnull = false;
        Datum datum;
        Data__FeatureCollection *fc = ctx->data->feature_collection;
-       Data__Feature **features = fc->features;
+/*     Data__Feature **features = fc->features; */
        Data__Feature *feature;
        GSERIALIZED *gs;
        if (fc->n_features >= ctx->features_capacity) {
index 00b8b83c43325c348dbfded1f6bc981586795e3c..e234a51cccb235d0ae726dcc9c378947618f6648 100644 (file)
@@ -316,8 +316,6 @@ LWPOINT* geography_centroid_from_mpoly(const LWMPOLY* mpoly, bool use_spheroid,
     POINT3DM points[size];
     uint32_t j = 0;
 
-    GBOX gbox;
-
     /* use first point as reference to create triangles */
     const POINT4D* reference_point = (const POINT4D*) getPoint2d_cp(mpoly->geoms[0]->rings[0], 0);
 
index 68d32b22db5899a0142ae09a859b90dab35e0d7b..2c5ba6a73128064746ab01c9fe45002f9541b7d0 100644 (file)
@@ -589,7 +589,6 @@ gserialized_datum_get_box2df_p(Datum gsdatum, BOX2DF *box2df)
        GSERIALIZED *gpart;
        uint8_t flags;
        int result = LW_SUCCESS;
-       int gpart_is_slice = FALSE;
 
        POSTGIS_DEBUG(4, "entered function");
 
index 54727dc29afff0fe60a08200d0d085e7c2357203..4fd00655ca21fcfed83c9692d2daf13bc47398d3 100644 (file)
@@ -2061,8 +2061,6 @@ Datum ST_MakeEnvelope(PG_FUNCTION_ARGS)
 {
        LWPOLY *poly;
        GSERIALIZED *result;
-       POINTARRAY **pa;
-       POINT4D p;
        double x1, y1, x2, y2;
        int srid = SRID_UNKNOWN;
 
index 6f69b0e78b8a02cf93cc24b1807aa1d20d634f9e..46e663682d0d5b15de2d4e70d839005dc60047bb 100644 (file)
@@ -478,7 +478,6 @@ static void add_value_as_string(struct mvt_agg_context *ctx,
 static void parse_datum_as_string(struct mvt_agg_context *ctx, Oid typoid,
        Datum datum, uint32_t *tags, uint32_t k)
 {
-       struct mvt_kv_string_value *kv;
        Oid foutoid;
        bool typisvarlena;
        char *value;
@@ -668,11 +667,9 @@ LWGEOM *mvt_geom(LWGEOM *lwgeom, const GBOX *gbox, uint32_t extent, uint32_t buf
        double width = gbox->xmax - gbox->xmin;
        double height = gbox->ymax - gbox->ymin;
        double resx = width / extent;
-       double resy = height / extent;
        double fx = extent / width;
        double fy = -(extent / height);
        double buffer_map_xunits = resx * buffer;
-       double buffer_map_yunits = resy * buffer;
        const GBOX *lwgeom_gbox;
        POSTGIS_DEBUG(2, "mvt_geom called");
 
@@ -807,7 +804,7 @@ void mvt_agg_transfn(struct mvt_agg_context *ctx)
        LWGEOM *lwgeom;
        VectorTile__Tile__Feature *feature;
        VectorTile__Tile__Layer *layer = ctx->layer;
-       VectorTile__Tile__Feature **features = layer->features;
+/*     VectorTile__Tile__Feature **features = layer->features; */
        POSTGIS_DEBUG(2, "mvt_agg_transfn called");
 
        if (layer->n_features >= ctx->features_capacity) {