forked from bartvdbraak/blender
code cleanup: warnings
This commit is contained in:
parent
03687b7c66
commit
9d713688ba
@ -828,7 +828,7 @@ void ExportCurveTriangleVcol(Mesh *mesh, ParticleCurveData *CData, int interpola
|
||||
return;
|
||||
|
||||
float time = 0.0f;
|
||||
float prevtime = 0.0f;
|
||||
// float prevtime = 0.0f; // UNUSED
|
||||
|
||||
int vertexindex = vert_offset;
|
||||
|
||||
@ -865,7 +865,7 @@ void ExportCurveTriangleVcol(Mesh *mesh, ParticleCurveData *CData, int interpola
|
||||
}
|
||||
}
|
||||
|
||||
prevtime = time;
|
||||
// prevtime = time; // UNUSED
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1242,12 +1242,15 @@ void CustomData_update_typemap(CustomData *data)
|
||||
}
|
||||
}
|
||||
|
||||
/* currently only used in BLI_assert */
|
||||
#ifndef NDEBUG
|
||||
static int customdata_typemap_is_valid(const CustomData *data)
|
||||
{
|
||||
CustomData data_copy = *data;
|
||||
CustomData_update_typemap(&data_copy);
|
||||
return (memcmp(data->typemap, data_copy.typemap, sizeof(data->typemap)) == 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
void CustomData_merge(const struct CustomData *source, struct CustomData *dest,
|
||||
CustomDataMask mask, int alloctype, int totelem)
|
||||
|
@ -384,6 +384,7 @@ static void offset_in_two_planes(EdgeHalf *e1, EdgeHalf *e2, EdgeHalf *emid,
|
||||
int iret;
|
||||
|
||||
BLI_assert(f1 != NULL && f2 != NULL);
|
||||
(void)f1, (void)f2; /* UNUSED */
|
||||
|
||||
/* get direction vectors for two offset lines */
|
||||
sub_v3_v3v3(dir1, v->co, BM_edge_other_vert(e1->e, v)->co);
|
||||
|
Loading…
Reference in New Issue
Block a user