From: Paul Ramsey Date: Wed, 11 Oct 2017 16:47:53 +0000 (+0000) Subject: Quiet un-used variable warnings X-Git-Tag: 2.5.0alpha~414 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=64134491b6fad59a11da05d494b6046b715e00df;p=postgis Quiet un-used variable warnings git-svn-id: http://svn.osgeo.org/postgis/trunk@15968 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/geobuf.c b/postgis/geobuf.c index 7340ccc80..be06a983f 100644 --- a/postgis/geobuf.c +++ b/postgis/geobuf.c @@ -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) { diff --git a/postgis/geography_centroid.c b/postgis/geography_centroid.c index 00b8b83c4..e234a51cc 100644 --- a/postgis/geography_centroid.c +++ b/postgis/geography_centroid.c @@ -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); diff --git a/postgis/gserialized_gist_2d.c b/postgis/gserialized_gist_2d.c index 68d32b22d..2c5ba6a73 100644 --- a/postgis/gserialized_gist_2d.c +++ b/postgis/gserialized_gist_2d.c @@ -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"); diff --git a/postgis/lwgeom_functions_basic.c b/postgis/lwgeom_functions_basic.c index 54727dc29..4fd00655c 100644 --- a/postgis/lwgeom_functions_basic.c +++ b/postgis/lwgeom_functions_basic.c @@ -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; diff --git a/postgis/mvt.c b/postgis/mvt.c index 6f69b0e78..46e663682 100644 --- a/postgis/mvt.c +++ b/postgis/mvt.c @@ -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) {