Cleanup: warnings
Values set but not used
This commit is contained in:
parent
304501193b
commit
bc1a7d9283
@ -2429,7 +2429,6 @@ SceneRenderView *BKE_scene_multiview_render_view_findindex(const RenderData *rd,
|
||||
if ((rd->scemode & R_MULTIVIEW) == 0)
|
||||
return NULL;
|
||||
|
||||
nr = 0;
|
||||
for (srv = rd->views.first, nr = 0; srv; srv = srv->next) {
|
||||
if (BKE_scene_multiview_is_render_view_active(rd, srv)) {
|
||||
if (nr++ == view_id)
|
||||
@ -2460,7 +2459,6 @@ int BKE_scene_multiview_view_id_get(const RenderData *rd, const char *viewname)
|
||||
if ((!viewname) || (!viewname[0]))
|
||||
return 0;
|
||||
|
||||
nr = 0;
|
||||
for (srv = rd->views.first, nr = 0; srv; srv = srv->next) {
|
||||
if (BKE_scene_multiview_is_render_view_active(rd, srv)) {
|
||||
if (STREQ(viewname, srv->name)) {
|
||||
|
@ -578,7 +578,7 @@ static void handleRadialSymmetry(BGraph *graph, BNode *root_node, int depth, flo
|
||||
unit = ring;
|
||||
|
||||
/* fill in the ring */
|
||||
for (unit = ring, i = 0; i < root_node->degree; i++) {
|
||||
for (i = 0; i < root_node->degree; i++) {
|
||||
BArc *connectedArc = root_node->arcs[i];
|
||||
|
||||
/* depth is store as a negative in flag. symmetry level is positive */
|
||||
|
@ -52,7 +52,7 @@ struct BMeshFromMeshParams {
|
||||
void BM_mesh_bm_from_me(
|
||||
BMesh *bm, struct Mesh *me,
|
||||
const struct BMeshFromMeshParams *params)
|
||||
ATTR_NONNULL(1, 2, 3);
|
||||
ATTR_NONNULL(1, 3);
|
||||
|
||||
struct BMeshToMeshParams {
|
||||
unsigned int calc_tessface : 1;
|
||||
|
@ -296,7 +296,6 @@ void BM_mesh_decimate_dissolve_ex(
|
||||
|
||||
/* --- setup heap --- */
|
||||
eheap = BLI_heap_new_ex(einput_len);
|
||||
eheap_table = _heap_table;
|
||||
|
||||
/* wire -> tag */
|
||||
BM_ITER_MESH (e_iter, &iter, bm, BM_EDGES_OF_MESH) {
|
||||
|
@ -179,7 +179,6 @@ EditBone *ED_armature_bone_find_shared_parent(EditBone *ebone_child[], const uns
|
||||
|
||||
/* accumulate */
|
||||
for (i = 0; i < ebone_child_tot; i++) {
|
||||
ebone_iter = ebone_child[i];
|
||||
for (ebone_iter = ebone_child[i]->parent; ebone_iter; ebone_iter = ebone_iter->parent) {
|
||||
EBONE_TEMP_UINT(ebone_iter) += 1;
|
||||
}
|
||||
|
@ -7371,7 +7371,6 @@ static void ui_blocks_set_tooltips(ARegion *ar, const bool enable)
|
||||
|
||||
static bool ui_region_contains_point_px(ARegion *ar, int x, int y)
|
||||
{
|
||||
uiBlock *block = ar->uiblocks.first;
|
||||
rcti winrct;
|
||||
|
||||
/* scale down area rect to exclude shadow */
|
||||
@ -7379,7 +7378,7 @@ static bool ui_region_contains_point_px(ARegion *ar, int x, int y)
|
||||
|
||||
/* check if the mouse is in the region */
|
||||
if (!BLI_rcti_isect_pt(&winrct, x, y)) {
|
||||
for (block = ar->uiblocks.first; block; block = block->next)
|
||||
for (uiBlock *block = ar->uiblocks.first; block; block = block->next)
|
||||
block->auto_open = false;
|
||||
|
||||
return false;
|
||||
|
@ -339,7 +339,6 @@ static void rotateDifferentialCoordinates(LaplacianSystem *sys)
|
||||
pi[1] = EIG_linear_solver_variable_get(sys->context, 1, i);
|
||||
pi[2] = EIG_linear_solver_variable_get(sys->context, 2, i);
|
||||
zero_v3(ni);
|
||||
num_fni = 0;
|
||||
num_fni = sys->ringf_map[i].count;
|
||||
for (fi = 0; fi < num_fni; fi++) {
|
||||
const unsigned int *vin;
|
||||
|
Loading…
Reference in New Issue
Block a user