]> granicus.if.org Git - postgis/commitdiff
Fix build fail when DEBUG = 1.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Mar 2011 15:52:15 +0000 (15:52 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Fri, 18 Mar 2011 15:52:15 +0000 (15:52 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@6923 b70326c6-7e19-0410-871a-916f4a2858ee

raster/rt_core/rt_api.c

index 1437694ad4925dd74da03a3815182e4849efa9a7..6a9c39cf30a8c25a5254bd0b25613c9a251623ee 100644 (file)
@@ -2948,7 +2948,7 @@ rt_raster_wkb_size(rt_context ctx, rt_raster raster) {
 
 uint8_t *
 rt_raster_to_wkb(rt_context ctx, rt_raster raster, uint32_t *wkbsize) {
-#if POSTGIS_DEBUG_LEVEL > 2
+#if POSTGIS_DEBUG_LEVEL > 0
     const uint8_t *wkbend = NULL;
 #endif
     uint8_t *wkb = NULL;
@@ -3562,7 +3562,7 @@ rt_raster_deserialize(rt_context ctx, void* serialized) {
         }
 
         /* Skip bytes of padding up to 8-bytes boundary */
-#if POSTGIS_DEBUG_LEVEL > 2
+#if POSTGIS_DEBUG_LEVEL > 0
         const uint8_t *padbeg = ptr;
 #endif
         while (0 != ((ptr - beg) % 8))