[postgis-commits] svn - r2997 - trunk/lwgeom

postgis-commits at postgis.refractions.net postgis-commits at postgis.refractions.net
Tue Sep 23 12:59:36 PDT 2008


Author: mcayland
Date: 2008-09-23 12:59:36 -0700 (Tue, 23 Sep 2008)
New Revision: 2997

Modified:
   trunk/lwgeom/lwgeom_gist.c
Log:
Remove a couple more warnings when compiling with debug enabled from lwgeom_gist.c.


Modified: trunk/lwgeom/lwgeom_gist.c
===================================================================
--- trunk/lwgeom/lwgeom_gist.c	2008-09-23 19:53:12 UTC (rev 2996)
+++ trunk/lwgeom/lwgeom_gist.c	2008-09-23 19:59:36 UTC (rev 2997)
@@ -465,7 +465,7 @@
 			/* 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 @@
 PG_FUNCTION_INFO_V1(LWGEOM_gist_decompress);
 Datum LWGEOM_gist_decompress(PG_FUNCTION_ARGS)
 {
+#if POSTGIS_DEBUG_LEVEL >= 4
 	static unsigned int counter2 = 0;
-#if POSTGIS_DEBUG_LEVEL >= 4
 	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));
 }



More information about the postgis-commits mailing list