Cleanup: unused variable warnings #108450
|
@ -176,11 +176,9 @@ void legacy_gpencil_to_grease_pencil(Main &bmain, GreasePencil &grease_pencil, b
|
|||
{
|
||||
using namespace blender::bke::greasepencil;
|
||||
|
||||
int num_layers = 0;
|
||||
int num_drawings = 0;
|
||||
LISTBASE_FOREACH (bGPDlayer *, gpl, &gpd.layers) {
|
||||
num_drawings += BLI_listbase_count(&gpl->frames);
|
||||
num_layers++;
|
||||
}
|
||||
|
||||
grease_pencil.drawing_array_size = num_drawings;
|
||||
|
|
|
@ -279,7 +279,6 @@ class BMeshFairingContext : public FairingContext {
|
|||
|
||||
/* This initializes both the bmloop and the vlmap for bmesh in a single loop. */
|
||||
BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
|
||||
int loop_count = 0;
|
||||
const int vert_index = BM_elem_index_get(v);
|
||||
vert_to_loop_offsets_[vert_index] = index_iter;
|
||||
BM_ITER_ELEM (l, &loop_iter, v, BM_LOOPS_OF_VERT) {
|
||||
|
@ -287,7 +286,6 @@ class BMeshFairingContext : public FairingContext {
|
|||
bmloop_[loop_index] = l;
|
||||
vert_to_loop_indices_[index_iter] = loop_index;
|
||||
index_iter++;
|
||||
loop_count++;
|
||||
}
|
||||
}
|
||||
vert_to_loop_offsets_.last() = index_iter;
|
||||
|
|
|
@ -583,6 +583,7 @@ static const char *skip_element(PlyReadBuffer &file,
|
|||
if (header.type == PlyFormatType::ASCII) {
|
||||
for (int i = 0; i < element.count; i++) {
|
||||
Span<char> line = file.read_line();
|
||||
(void)line;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue