aboutsummaryrefslogtreecommitdiff
path: root/src/test_malloc.c
diff options
context:
space:
mode:
authorshane <shane@noemail.net>2008-05-29 02:57:47 +0000
committershane <shane@noemail.net>2008-05-29 02:57:47 +0000
commitafdd23a47d7c9114ab0341d37dd9c4c4c0e45c36 (patch)
tree05a48d393dee2e67421143965d99d0524f330dc6 /src/test_malloc.c
parent75998ab3d9173a1f7d697b449cb4a18a3980bf5f (diff)
downloadsqlite-afdd23a47d7c9114ab0341d37dd9c4c4c0e45c36.tar.gz
sqlite-afdd23a47d7c9114ab0341d37dd9c4c4c0e45c36.zip
Unused functions in testfixture.exe with certain defines. (CVS 5172)
FossilOrigin-Name: 5e3ff1bb37f7fbdc9b1414232bd78f096f89eced
Diffstat (limited to 'src/test_malloc.c')
-rw-r--r--src/test_malloc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test_malloc.c b/src/test_malloc.c
index 43bbfc2c9..da2a7b5f9 100644
--- a/src/test_malloc.c
+++ b/src/test_malloc.c
@@ -13,7 +13,7 @@
** This file contains code used to implement test interfaces to the
** memory allocation subsystem.
**
-** $Id: test_malloc.c,v 1.22 2008/03/28 15:44:10 danielk1977 Exp $
+** $Id: test_malloc.c,v 1.23 2008/05/29 02:57:48 shane Exp $
*/
#include "sqliteInt.h"
#include "tcl.h"
@@ -517,6 +517,7 @@ struct MallocLog {
int nByte;
};
+#ifdef SQLITE_MEMDEBUG
static void test_memdebug_callback(int nByte, int nFrame, void **aFrame){
if( mallocLogEnabled ){
MallocLog *pLog;
@@ -545,6 +546,7 @@ static void test_memdebug_callback(int nByte, int nFrame, void **aFrame){
pLog->nByte += nByte;
}
}
+#endif /* SQLITE_MEMDEBUG */
static void test_memdebug_log_clear(){
Tcl_HashSearch search;