Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-10-07 11:39:58 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-10-07 11:39:58 +0400
commit6631d4ddd5275d6c141d3cdc7ec08a579d8fa8a7 (patch)
treec7ddfcab23578f9590b679cc3d6a85ad094c9e3a
parent03bb0f5c7214889674ee0662e426608bc6b2acd6 (diff)
Build fix (issue could happen with scons,reported by ebrain on IRC, thanks).
Var declared in an #ifdef DEBUG, but used in an #ifndef NDEBUG…
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index 4ceb29831e2..261e53f0f55 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -66,7 +66,7 @@
/* when undefined, merge the allocs for BLI_mempool_chunk and its data */
// #define USE_DATA_PTR
-#ifdef DEBUG
+#ifndef NDEBUG
static bool mempool_debug_memset = false;
#endif
@@ -632,7 +632,7 @@ void BLI_mempool_destroy(BLI_mempool *pool)
}
}
-#ifdef DEBUG
+#ifndef NDEBUG
void BLI_mempool_set_memory_debug(void)
{
mempool_debug_memset = true;