COMP: fix library linkage (#2784), silence some unused variable warnings

This commit is contained in:
Mark Olesen
2023-05-18 18:53:40 +02:00
parent a5d9ad3a5c
commit 87cb811db2
31 changed files with 139 additions and 135 deletions

View File

@ -474,7 +474,7 @@ bool Foam::functionObjects::regionSizeDistribution::write()
// Determine blocked faces
boolList blockedFace(mesh_.nFaces(), false);
label nBlocked = 0;
// label nBlocked = 0;
{
for (label facei = 0; facei < mesh_.nInternalFaces(); facei++)
@ -489,7 +489,7 @@ bool Foam::functionObjects::regionSizeDistribution::write()
)
{
blockedFace[facei] = true;
nBlocked++;
// ++nBlocked;
}
}
@ -518,7 +518,7 @@ bool Foam::functionObjects::regionSizeDistribution::write()
)
{
blockedFace[start+i] = true;
nBlocked++;
// ++nBlocked;
}
}
}

View File

@ -58,12 +58,10 @@ Foam::label Foam::functionObjects::vtkWrite::writeVolFieldsImpl
}
// Boundary
label writeri = 0;
for (vtk::patchWriter& writer : patchWriters)
{
ok = true;
writer.write(field);
++writeri;
}
if (ok)