aboutsummaryrefslogtreecommitdiffstats
path: root/util/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/memory.c')
-rw-r--r--util/memory.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/memory.c b/util/memory.c
index ebf8f8893..40784375d 100644
--- a/util/memory.c
+++ b/util/memory.c
@@ -48,9 +48,10 @@
#define EXTRA_ALIGN 0
#endif
-static void membug( const char *fmt, ... );
#ifdef M_DEBUG
+ static void membug( const char *fmt, ... );
+
#ifndef M_GUARD
#define M_GUARD 1
#endif
@@ -318,7 +319,6 @@ check_allmem( const char *info )
check_mem(e->user_p-4-EXTRA_ALIGN, info);
}
-#endif /* M_DEBUG */
static void
membug( const char *fmt, ... )
@@ -337,6 +337,7 @@ membug( const char *fmt, ... )
abort();
}
+#endif /* M_DEBUG */
void
m_print_stats( const char *prefix )