Cleanup: unused variable warnings #108450

Merged
Sergey Sharybin merged 1 commits from Sergey/blender:cleanup into main 2023-05-31 11:51:50 +02:00
3 changed files with 1 additions and 4 deletions

View File

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

View File

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

View File

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