[Bf-blender-cvs] [18e619ac69b] master: Fix strict compiler warnings

Sergey Sharybin noreply at git.blender.org
Fri Jul 5 16:09:17 CEST 2019


Commit: 18e619ac69bfebe0baeaa3dbf51e34ea9856438d
Author: Sergey Sharybin
Date:   Fri Jul 5 16:08:51 2019 +0200
Branches: master
https://developer.blender.org/rB18e619ac69bfebe0baeaa3dbf51e34ea9856438d

Fix strict compiler warnings

===================================================================

M	source/blender/editors/object/object_constraint.c
M	source/blender/editors/space_view3d/view3d_select.c

===================================================================

diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c
index 77b23081a62..9c23daab923 100644
--- a/source/blender/editors/object/object_constraint.c
+++ b/source/blender/editors/object/object_constraint.c
@@ -958,6 +958,7 @@ static void child_get_inverse_matrix_owner_object(
 
     /* make sure we passed the correct constraint */
     BLI_assert(BLI_findindex(&ob->constraints, con) != -1);
+    UNUSED_VARS_NDEBUG(con);
 
     /* use BKE_object_workob_calc_parent to find inverse - just like for normal parenting */
     BKE_object_workob_calc_parent(depsgraph, scene, ob, &workob);
diff --git a/source/blender/editors/space_view3d/view3d_select.c b/source/blender/editors/space_view3d/view3d_select.c
index 9488e520453..65ed707b2c1 100644
--- a/source/blender/editors/space_view3d/view3d_select.c
+++ b/source/blender/editors/space_view3d/view3d_select.c
@@ -1626,6 +1626,7 @@ static int object_select_menu_exec(bContext *C, wmOperator *op)
   if (basact == NULL) {
     return OPERATOR_CANCELLED;
   }
+  UNUSED_VARS_NDEBUG(v3d);
   BLI_assert(BASE_SELECTABLE(v3d, basact));
 
   if (extend) {



More information about the Bf-blender-cvs mailing list