From: Mark Cave-Ayland Date: Tue, 23 Sep 2008 19:59:36 +0000 (+0000) Subject: Remove a couple more warnings when compiling with debug enabled from lwgeom_gist.c. X-Git-Tag: 1.4.0b1~711 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ceb7ed973896e9f0d8e546c1ba86ad993421e2f7;p=postgis Remove a couple more warnings when compiling with debug enabled from lwgeom_gist.c. git-svn-id: http://svn.osgeo.org/postgis/trunk@2997 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_gist.c b/lwgeom/lwgeom_gist.c index 94d6201e7..4a97536a1 100644 --- a/lwgeom/lwgeom_gist.c +++ b/lwgeom/lwgeom_gist.c @@ -465,7 +465,7 @@ Datum LWGEOM_gist_compress(PG_FUNCTION_ARGS) /* lwgeom serialized form */ in = (PG_LWGEOM*)PG_DETOAST_DATUM(entry->key); - POSTGIS_DEBUGF(4, "GIST: LWGEOM_gist_compress detoasted entry->key: %s", serialized_lwgeom_to_ewkt(in+VARHDRSZ)); + POSTGIS_DEBUGF(4, "GIST: LWGEOM_gist_compress detoasted entry->key: %s", serialized_lwgeom_to_ewkt((uchar *)in+VARHDRSZ)); if (in == NULL) { @@ -746,11 +746,11 @@ lwgeom_rtree_leaf_consistent(BOX2DFLOAT4 *key, PG_FUNCTION_INFO_V1(LWGEOM_gist_decompress); Datum LWGEOM_gist_decompress(PG_FUNCTION_ARGS) { - static unsigned int counter2 = 0; #if POSTGIS_DEBUG_LEVEL >= 4 + static unsigned int counter2 = 0; counter2++; #endif - POSTGIS_DEBUGF(2, "GIST: LWGEOM_gist_decompress called %i",counter2); + POSTGIS_DEBUGF(4, "GIST: LWGEOM_gist_decompress called %i",counter2); PG_RETURN_POINTER(PG_GETARG_POINTER(0)); }