diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-09-05 16:10:49 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-09-05 16:10:49 +0400 |
commit | 69b68ed867407538a9b231cabf3481cb1404b37f (patch) | |
tree | 8ebe5b8b4d65e8be61b1afd74d6cba95d91aad71 /source/blender/compositor | |
parent | 2e0422b17f2fab16840c13bc64a11b6bc8934d18 (diff) |
Removed unused variables used only in BLI_assert, this triggers compiler warning in release builds.
Diffstat (limited to 'source/blender/compositor')
-rw-r--r-- | source/blender/compositor/intern/COM_MemoryBuffer.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.h b/source/blender/compositor/intern/COM_MemoryBuffer.h index 288ed6bbc39..d02011f0900 100644 --- a/source/blender/compositor/intern/COM_MemoryBuffer.h +++ b/source/blender/compositor/intern/COM_MemoryBuffer.h @@ -189,9 +189,8 @@ public: BLI_assert(offset >= 0); BLI_assert(offset < this->determineBufferSize() * COM_NUMBER_OF_CHANNELS); - bool clip_x = (extend_x == COM_MB_CLIP && (x < m_rect.xmin || x >= m_rect.xmax)); - bool clip_y = (extend_y == COM_MB_CLIP && (y < m_rect.ymin || y >= m_rect.ymax)); - BLI_assert(!clip_x && !clip_y); + BLI_assert(!(extend_x == COM_MB_CLIP && (x < m_rect.xmin || x >= m_rect.xmax)) + && !(extend_y == COM_MB_CLIP && (y < m_rect.ymin || y >= m_rect.ymax))); #if 0 /* always true */ |