]> granicus.if.org Git - postgis/commitdiff
Quiet printf warnings in mvt size_t debug messages
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 14 Sep 2017 22:30:44 +0000 (22:30 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 14 Sep 2017 22:30:44 +0000 (22:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@15738 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/mvt.c

index 173b84892dc5583b54dc5ed2046305c1aa3cb054..528d6b4aea162b9aede35d3a786da622682fb551 100644 (file)
@@ -631,7 +631,7 @@ static void parse_values(struct mvt_agg_context *ctx)
        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 @@ void mvt_agg_transfn(struct mvt_agg_context *ctx)
                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 @@ void mvt_agg_transfn(struct mvt_agg_context *ctx)
        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;