[postgis-tickets] r15968 - Quiet un-used variable warnings

Paul Ramsey pramsey at cleverelephant.ca
Wed Oct 11 09:47:53 PDT 2017


Author: pramsey
Date: 2017-10-11 09:47:53 -0700 (Wed, 11 Oct 2017)
New Revision: 15968

Modified:
   trunk/postgis/geobuf.c
   trunk/postgis/geography_centroid.c
   trunk/postgis/gserialized_gist_2d.c
   trunk/postgis/lwgeom_functions_basic.c
   trunk/postgis/mvt.c
Log:
Quiet un-used variable warnings


Modified: trunk/postgis/geobuf.c
===================================================================
--- trunk/postgis/geobuf.c	2017-10-11 15:05:27 UTC (rev 15967)
+++ trunk/postgis/geobuf.c	2017-10-11 16:47:53 UTC (rev 15968)
@@ -564,7 +564,7 @@
 	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) {

Modified: trunk/postgis/geography_centroid.c
===================================================================
--- trunk/postgis/geography_centroid.c	2017-10-11 15:05:27 UTC (rev 15967)
+++ trunk/postgis/geography_centroid.c	2017-10-11 16:47:53 UTC (rev 15968)
@@ -316,8 +316,6 @@
     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);
 

Modified: trunk/postgis/gserialized_gist_2d.c
===================================================================
--- trunk/postgis/gserialized_gist_2d.c	2017-10-11 15:05:27 UTC (rev 15967)
+++ trunk/postgis/gserialized_gist_2d.c	2017-10-11 16:47:53 UTC (rev 15968)
@@ -589,7 +589,6 @@
 	GSERIALIZED *gpart;
 	uint8_t flags;
 	int result = LW_SUCCESS;
-	int gpart_is_slice = FALSE;
 
 	POSTGIS_DEBUG(4, "entered function");
 

Modified: trunk/postgis/lwgeom_functions_basic.c
===================================================================
--- trunk/postgis/lwgeom_functions_basic.c	2017-10-11 15:05:27 UTC (rev 15967)
+++ trunk/postgis/lwgeom_functions_basic.c	2017-10-11 16:47:53 UTC (rev 15968)
@@ -2061,8 +2061,6 @@
 {
 	LWPOLY *poly;
 	GSERIALIZED *result;
-	POINTARRAY **pa;
-	POINT4D p;
 	double x1, y1, x2, y2;
 	int srid = SRID_UNKNOWN;
 

Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c	2017-10-11 15:05:27 UTC (rev 15967)
+++ trunk/postgis/mvt.c	2017-10-11 16:47:53 UTC (rev 15968)
@@ -478,7 +478,6 @@
 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 @@
 	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 @@
 	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) {



More information about the postgis-tickets mailing list