Cleanup: fix compiler warnings

This commit is contained in:
2021-02-17 06:19:01 +01:00
parent 351d8bfc41
commit ec8c09f2aa
2 changed files with 2 additions and 1 deletions

View File

@@ -128,6 +128,7 @@ static void __cpuid(
: "a"(selector)
: "ebx");
# else
(void)selector;
data[0] = data[1] = data[2] = data[3] = 0;
# endif
}

View File

@@ -628,7 +628,7 @@ void BlenderStrokeRenderer::GenerateStrokeMesh(StrokeGroup *group, bool hasTex)
mesh->mloopcol = colors;
mesh->mat = (Material **)MEM_mallocN(sizeof(Material *) * mesh->totcol, "MaterialList");
for (const auto &item : group->materials.items()) {
for (const auto item : group->materials.items()) {
Material *material = item.key;
const int matnr = item.value;
mesh->mat[matnr] = material;