From: Sandro Santilli Date: Fri, 25 Nov 2005 16:11:34 +0000 (+0000) Subject: Wrapped PROJ4SRSCacheCheck function in ifdef MEMORY_CONTEXT_CHECKING block, to avoid... X-Git-Tag: pgis_1_1_0~135 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c7cfc2a518fef70a5b656e81718039491e93a70d;p=postgis Wrapped PROJ4SRSCacheCheck function in ifdef MEMORY_CONTEXT_CHECKING block, to avoid compiler warning git-svn-id: http://svn.osgeo.org/postgis/trunk@2075 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_transform.c b/lwgeom/lwgeom_transform.c index b0bf253c7..64f737b4f 100644 --- a/lwgeom/lwgeom_transform.c +++ b/lwgeom/lwgeom_transform.c @@ -129,7 +129,9 @@ void DeleteFromPROJ4SRSCache(PROJ4PortalCache *PROJ4Cache, int srid); // Memory context cache functions static void PROJ4SRSCacheInit(MemoryContext context); static void PROJ4SRSCacheDelete(MemoryContext context); +#ifdef MEMORY_CONTEXT_CHECKING static void PROJ4SRSCacheCheck(MemoryContext context); +#endif // Memory context definition must match the current version of PostgreSQL @@ -209,11 +211,13 @@ PROJ4SRSCacheDelete(MemoryContext context) DeletePJHashEntry(context); } +#ifdef MEMORY_CONTEXT_CHECKING static void PROJ4SRSCacheCheck(MemoryContext context) { // Do nothing - stub required for when PostgreSQL is compiled with MEMORY_CONTEXT_CHECKING defined } +#endif //