aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1999-07-07 11:28:26 +0000
committerWerner Koch <[email protected]>1999-07-07 11:28:26 +0000
commitbd7298cf0dbeacbd415acdf814acace9aabb8455 (patch)
treeae235766ee42b77ba5ca19dfb1bf99e678154e3d /util/memory.c
parentSee ChangeLog: Fri Jul 2 11:45:54 CEST 1999 Werner Koch (diff)
downloadgnupg-bd7298cf0dbeacbd415acdf814acace9aabb8455.tar.gz
gnupg-bd7298cf0dbeacbd415acdf814acace9aabb8455.zip
See ChangeLog: Wed Jul 7 13:23:40 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r--util/memory.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/memory.c b/util/memory.c
index 40784375d..af79cd0cb 100644
--- a/util/memory.c
+++ b/util/memory.c
@@ -48,9 +48,11 @@
#define EXTRA_ALIGN 0
#endif
+#if defined(M_DEBUG) || defined(M_GUARD)
+ static void membug( const char *fmt, ... );
+#endif
#ifdef M_DEBUG
- static void membug( const char *fmt, ... );
#ifndef M_GUARD
#define M_GUARD 1
@@ -319,7 +321,9 @@ check_allmem( const char *info )
check_mem(e->user_p-4-EXTRA_ALIGN, info);
}
+#endif /* M_DEBUG */
+#if defined(M_DEBUG) || defined(M_GUARD)
static void
membug( const char *fmt, ... )
{
@@ -336,8 +340,7 @@ membug( const char *fmt, ... )
#endif
abort();
}
-
-#endif /* M_DEBUG */
+#endif
void
m_print_stats( const char *prefix )