From 69d06bad46a98fdd95610b5b01d8244f41dd1ff4 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 1 Mar 2004 14:16:31 +0000 Subject: [PATCH] (sctcache, bestp) [!DO_EFF_MEM_CHECKING]: cache isn't used, don't define it. --- src/lib/common/path.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/common/path.c b/src/lib/common/path.c index 8f79912b..bdcbf78b 100644 --- a/src/lib/common/path.c +++ b/src/lib/common/path.c @@ -66,14 +66,18 @@ #define BP_ASHASHSIZE 128 /* A* queue hash table size */ #define BP_NEIGHBORS 6 /* max number of neighbors */ +#ifdef DO_EFF_MEM_CHECKING struct sctcache { coord x, y; struct sctstr *sp; struct sctcache *next; }; +#endif /* DO_EFF_MEM_CHECKING */ struct bestp { +#ifdef DO_EFF_MEM_CHECKING struct sctcache *sctcachetab[BP_SCTHASHSIZE]; +#endif int sctcache_hits; int sctcache_misses; int bp_mobtype;