From 18e619ac69bfebe0baeaa3dbf51e34ea9856438d Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Fri, 5 Jul 2019 16:08:51 +0200 Subject: [PATCH] Fix strict compiler warnings --- source/blender/editors/object/object_constraint.c | 1 + source/blender/editors/space_view3d/view3d_select.c | 1 + 2 files changed, 2 insertions(+) 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) {