Cleanup: warning in release builds

This commit is contained in:
Campbell Barton 2019-03-06 02:48:51 +11:00
parent 55cd481bf2
commit b8bb2bb960
Notes: blender-bot 2023-02-14 07:45:38 +01:00
Referenced by issue #62225, Weight paint mode and vertex paint mode share the same brushes
1 changed files with 1 additions and 1 deletions

View File

@ -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);