Fix strict compiler warnings

This commit is contained in:
Sergey Sharybin 2019-07-05 16:08:51 +02:00
parent 599626edd5
commit 18e619ac69
2 changed files with 2 additions and 0 deletions

View File

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

View File

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