[postgis-tickets] r15738 - Quiet printf warnings in mvt size_t debug messages

Paul Ramsey pramsey at cleverelephant.ca
Thu Sep 14 15:30:44 PDT 2017


Author: pramsey
Date: 2017-09-14 15:30:44 -0700 (Thu, 14 Sep 2017)
New Revision: 15738

Modified:
   trunk/postgis/mvt.c
Log:
Quiet printf warnings in mvt size_t debug messages


Modified: trunk/postgis/mvt.c
===================================================================
--- trunk/postgis/mvt.c	2017-09-14 18:57:27 UTC (rev 15737)
+++ trunk/postgis/mvt.c	2017-09-14 22:30:44 UTC (rev 15738)
@@ -631,7 +631,7 @@
 	ctx->feature->n_tags = ctx->c * 2;
 	ctx->feature->tags = tags;
 
-	POSTGIS_DEBUGF(3, "parse_values n_tags %d", ctx->feature->n_tags);
+	POSTGIS_DEBUGF(3, "parse_values n_tags %zd", ctx->feature->n_tags);
 }
 static int max_type(LWCOLLECTION *lwcoll)
 {
@@ -805,7 +805,7 @@
 		layer->features = repalloc(layer->features, new_capacity *
 			sizeof(*layer->features));
 		ctx->features_capacity = new_capacity;
-		POSTGIS_DEBUGF(3, "mvt_agg_transfn new_capacity: %d", new_capacity);
+		POSTGIS_DEBUGF(3, "mvt_agg_transfn new_capacity: %zd", new_capacity);
 	}
 
 	feature = palloc(sizeof(*feature));
@@ -821,7 +821,7 @@
 	gs = (GSERIALIZED *) PG_DETOAST_DATUM(datum);
 	lwgeom = lwgeom_from_gserialized(gs);
 
-	POSTGIS_DEBUGF(3, "mvt_agg_transfn encoded feature count: %d",
+	POSTGIS_DEBUGF(3, "mvt_agg_transfn encoded feature count: %zd",
 		layer->n_features);
 	layer->features[layer->n_features++] = feature;
 



More information about the postgis-tickets mailing list