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:
authorSergey Sharybin <sergey.vfx@gmail.com>2018-11-08 17:49:25 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2018-11-08 17:49:25 +0300
commitd4370e2e0089be66f98210f6374031186dee4758 (patch)
tree5758a5a2339997a939e31ede698d69caaceeb292 /source/blender
parent146b39a45d4ad1b36a977d19984797f984f161ec (diff)
Cleanup, compiler warnings in release mode
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/blenkernel/intern/paint_toolslots.c2
-rw-r--r--source/blender/makesrna/intern/rna_sculpt_paint.c1
2 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/paint_toolslots.c b/source/blender/blenkernel/intern/paint_toolslots.c
index 5f6b1d9438d..92e42a0a468 100644
--- a/source/blender/blenkernel/intern/paint_toolslots.c
+++ b/source/blender/blenkernel/intern/paint_toolslots.c
@@ -82,6 +82,7 @@ void BKE_paint_toolslots_init_from_main(struct Main *bmain)
void BKE_paint_toolslots_brush_update_ex(Paint *paint, Brush *brush)
{
const uint tool_offset = paint->runtime.tool_offset;
+ UNUSED_VARS_NDEBUG(tool_offset);
BLI_assert(tool_offset != 0);
const int slot_index = BKE_brush_tool_get(brush, paint);
BKE_paint_toolslots_len_ensure(paint, slot_index + 1);
@@ -107,6 +108,7 @@ void BKE_paint_toolslots_brush_validate(Main *bmain, Paint *paint)
{
/* Clear slots with invalid slots or mode (unlikely but possible). */
const uint tool_offset = paint->runtime.tool_offset;
+ UNUSED_VARS_NDEBUG(tool_offset);
const eObjectMode ob_mode = paint->runtime.ob_mode;
BLI_assert(tool_offset && ob_mode);
for (int i = 0; i < paint->tool_slots_len; i++) {
diff --git a/source/blender/makesrna/intern/rna_sculpt_paint.c b/source/blender/makesrna/intern/rna_sculpt_paint.c
index 841a5be1aff..d2ed6229b13 100644
--- a/source/blender/makesrna/intern/rna_sculpt_paint.c
+++ b/source/blender/makesrna/intern/rna_sculpt_paint.c
@@ -277,6 +277,7 @@ static bool rna_Brush_mode_poll(PointerRNA *ptr, PointerRNA value)
Brush *brush = value.id.data;
const uint tool_offset = paint->runtime.tool_offset;
const eObjectMode ob_mode = paint->runtime.ob_mode;
+ UNUSED_VARS_NDEBUG(tool_offset);
BLI_assert(tool_offset && ob_mode);
if (brush->ob_mode & ob_mode) {