Cleanup: use new BLI_assert_unreachable macro

This commit is contained in:
2021-03-24 12:38:08 +11:00
parent 3ea1779365
commit 3f47df577d
28 changed files with 55 additions and 53 deletions

View File

@@ -94,7 +94,7 @@ int ED_select_similar_compare_float(const float delta, const float thresh, const
case SIM_CMP_LT:
return ((delta - thresh) < FLT_EPSILON);
default:
BLI_assert(0);
BLI_assert_unreachable();
return 0;
}
}
@@ -124,7 +124,7 @@ bool ED_select_similar_compare_float_tree(const KDTree_1d *tree,
nearest_edge_length = FLT_MAX;
break;
default:
BLI_assert(0);
BLI_assert_unreachable();
return false;
}