]> granicus.if.org Git - postgis/commitdiff
Remove a couple more warnings when compiling with debug enabled from lwgeom_gist.c.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 23 Sep 2008 19:59:36 +0000 (19:59 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 23 Sep 2008 19:59:36 +0000 (19:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2997 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_gist.c

index 94d6201e7106b418a401f347ec234cce4c365509..4a97536a11b257f9d47799f6c00bf49ee6a71e48 100644 (file)
@@ -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));
 }