diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-10-07 11:39:58 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-10-07 11:39:58 +0400 |
commit | 6631d4ddd5275d6c141d3cdc7ec08a579d8fa8a7 (patch) | |
tree | c7ddfcab23578f9590b679cc3d6a85ad094c9e3a /source/blender/blenlib/intern/BLI_mempool.c | |
parent | 03bb0f5c7214889674ee0662e426608bc6b2acd6 (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…
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r-- | source/blender/blenlib/intern/BLI_mempool.c | 4 |
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; |