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:
authorCampbell Barton <ideasman42@gmail.com>2019-03-05 18:48:51 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-05 18:49:30 +0300
commitb8bb2bb960accdd1c2fb5bdfaabb7ead898d9725 (patch)
treedee6cf94e1ae3e2e8f1f9f13b94cdb7ee6977fc1 /source/blender/blenlib/intern/BLI_mempool.c
parent55cd481bf2d85df3b7febe75c8f604ef3c5144a0 (diff)
Cleanup: warning in release builds
Diffstat (limited to 'source/blender/blenlib/intern/BLI_mempool.c')
-rw-r--r--source/blender/blenlib/intern/BLI_mempool.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/BLI_mempool.c b/source/blender/blenlib/intern/BLI_mempool.c
index 292cafecc98..5acc84da288 100644
--- a/source/blender/blenlib/intern/BLI_mempool.c
+++ b/source/blender/blenlib/intern/BLI_mempool.c
@@ -302,7 +302,7 @@ BLI_mempool *BLI_mempool_create(
pool->csize = esize * pchunk;
/* Ensure this is a power of 2, minus the rounding by element size. */
-#ifdef USE_CHUNK_POW2
+#if defined(USE_CHUNK_POW2) && !defined(NDEBUG)
{
uint final_size = (uint)MEM_SIZE_OVERHEAD + (uint)sizeof(BLI_mempool_chunk) + pool->csize;
BLI_assert(((uint)power_of_2_max_u(final_size) - final_size) < pool->esize);