]> granicus.if.org Git - postgis/commitdiff
Quiet some debug-level warnings.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 17 Mar 2011 19:30:53 +0000 (19:30 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Thu, 17 Mar 2011 19:30:53 +0000 (19:30 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6919 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_functions_analytic.c
postgis/lwgeom_gist.c
postgis/lwgeom_rtree.c
postgis/lwgeom_spheroid.c

index 9356701771e10a6552aab8aa125416197641e0ec..60d4fc3fd1b8ba6063960717cc0395069a0ca3a1 100644 (file)
@@ -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)
index 45d955a2d95db906eca72fc0495301c87a0b7e26..fb282ee062da55bf4c9493512726d1016a18b4c9 100644 (file)
@@ -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");
 
index f5b0bc3e16764d633ebf38d7f28faa42a1387420..a9da98644a1e8ff3be937436c9844de419d16d2e 100644 (file)
@@ -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
 
index 0e4ffffa37f8d443ca0c7d0d261fb85ba1424a6d..ebd7802b7bd94f430afc5a89a949c5ff51a5c630 100644 (file)
@@ -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