From c7cfc2a518fef70a5b656e81718039491e93a70d Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 25 Nov 2005 16:11:34 +0000 Subject: [PATCH] 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 --- lwgeom/lwgeom_transform.c | 4 ++++ 1 file changed, 4 insertions(+) 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 // -- 2.50.0