[mapserver-commits] r12647 - trunk/mapserver/mapcache/src

svn at osgeo.org svn at osgeo.org
Sat Oct 8 12:05:30 EDT 2011


Author: tbonfort
Date: 2011-10-08 09:05:30 -0700 (Sat, 08 Oct 2011)
New Revision: 12647

Modified:
   trunk/mapserver/mapcache/src/cache_tiff.c
Log:
avoid unused function warning when tiff write support not enabled


Modified: trunk/mapserver/mapcache/src/cache_tiff.c
===================================================================
--- trunk/mapserver/mapcache/src/cache_tiff.c	2011-10-08 10:18:53 UTC (rev 12646)
+++ trunk/mapserver/mapcache/src/cache_tiff.c	2011-10-08 16:05:30 UTC (rev 12647)
@@ -39,6 +39,7 @@
 #include <tiffio.h>
 
 
+#ifdef USE_TIFF_WRITE
 #if APR_HAS_THREADS
 #include <apr_thread_mutex.h>
 #define THREADLOCK_HASHARRAY_SIZE 64
@@ -51,6 +52,7 @@
   return(hashval % THREADLOCK_HASHARRAY_SIZE);
 }
 #endif
+#endif
 
 /**
  * \brief return filename for given tile
@@ -650,6 +652,7 @@
       return;
    }
    
+#ifdef USE_TIFF_WRITE
 #if APR_HAS_THREADS
    if(ctx->has_threads) {
       /* create an array of thread locks */
@@ -661,6 +664,7 @@
       }
    }
 #endif
+#endif
 }
 
 /**



More information about the mapserver-commits mailing list