From: Paul Ramsey Date: Thu, 17 Mar 2011 19:30:53 +0000 (+0000) Subject: Quiet some debug-level warnings. X-Git-Tag: 2.0.0alpha1~1883 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca7446ba0c1361ab90fce6a4aaac4a83f4d1261b;p=postgis Quiet some debug-level warnings. git-svn-id: http://svn.osgeo.org/postgis/trunk@6919 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_functions_analytic.c b/postgis/lwgeom_functions_analytic.c index 935670177..60d4fc3fd 100644 --- a/postgis/lwgeom_functions_analytic.c +++ b/postgis/lwgeom_functions_analytic.c @@ -246,7 +246,7 @@ POINTARRAY *ptarray_grid(POINTARRAY *pa, gridspec *grid); Datum LWGEOM_snaptogrid(PG_FUNCTION_ARGS); Datum LWGEOM_snaptogrid_pointoff(PG_FUNCTION_ARGS); static int grid_isNull(const gridspec *grid); -#if POSTGIS_DEBUG_LEVEL > 0 +#if POSTGIS_DEBUG_LEVEL >=4 static void grid_print(const gridspec *grid); #endif @@ -261,7 +261,7 @@ grid_isNull(const gridspec *grid) else return 0; } -#if POSTGIS_DEBUG_LEVEL > 0 +#if POSTGIS_DEBUG_LEVEL >= 4 /* Print grid using given reporter */ static void grid_print(const gridspec *grid) diff --git a/postgis/lwgeom_gist.c b/postgis/lwgeom_gist.c index 45d955a2d..fb282ee06 100644 --- a/postgis/lwgeom_gist.c +++ b/postgis/lwgeom_gist.c @@ -478,10 +478,6 @@ Datum LWGEOM_gist_compress(PG_FUNCTION_ARGS) PG_LWGEOM *in; /* lwgeom serialized */ BOX2DFLOAT4 *rr; -#if POSTGIS_DEBUG_LEVEL > 0 - int result; - LWGEOM_UNPARSER_RESULT lwg_unparser_result; -#endif POSTGIS_DEBUG(2, "GIST: LWGEOM_gist_compress called"); diff --git a/postgis/lwgeom_rtree.c b/postgis/lwgeom_rtree.c index f5b0bc3e1..a9da98644 100644 --- a/postgis/lwgeom_rtree.c +++ b/postgis/lwgeom_rtree.c @@ -343,7 +343,7 @@ Datum LWGEOM_polygon_index(PG_FUNCTION_ARGS) LWMLINE *mline; RTREE_NODE *root; double yval; -#if POSTGIS_DEBUG_LEVEL > 0 +#if POSTGIS_DEBUG_LEVEL >= 3 int i = 0; #endif diff --git a/postgis/lwgeom_spheroid.c b/postgis/lwgeom_spheroid.c index 0e4ffffa3..ebd7802b7 100644 --- a/postgis/lwgeom_spheroid.c +++ b/postgis/lwgeom_spheroid.c @@ -194,7 +194,7 @@ distance_ellipse(double lat1, double long1, double lat2, double long2, SPHEROID *sphere) { double result = 0; -#if POSTGIS_DEBUG_LEVEL > 0 +#if POSTGIS_DEBUG_LEVEL >= 4 double result2 = 0; #endif