Cleanup: quiet warning

This commit is contained in:
Campbell Barton 2015-07-09 19:23:49 +10:00
parent 980ea4e54f
commit a837797740
3 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ void **BLI_mempool_as_tableN(BLI_mempool *pool, const char *allocstr) ATTR_
void BLI_mempool_as_array(BLI_mempool *pool, void *data) ATTR_NONNULL(1, 2);
void *BLI_mempool_as_arrayN(BLI_mempool *pool, const char *allocstr) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT ATTR_NONNULL(1, 2);
#ifdef DEBUG
#ifndef NDEBUG
void BLI_mempool_set_memory_debug(void);
#endif

View File

@ -445,7 +445,7 @@ static int debug_mode(int UNUSED(argc), const char **UNUSED(argv), void *data)
G.debug |= G_DEBUG; /* std output printf's */
printf(BLEND_VERSION_STRING_FMT);
MEM_set_memory_debug();
#ifdef DEBUG
#ifndef NDEBUG
BLI_mempool_set_memory_debug();
#endif

View File

@ -599,7 +599,7 @@ int main(int argc, char** argv)
i++;
G.debug |= G_DEBUG;
MEM_set_memory_debug();
#ifdef DEBUG
#ifndef NDEBUG
BLI_mempool_set_memory_debug();
#endif
break;