ASMUtils: avoid unused variable warnings

the loop counters are only used in debug code
This commit is contained in:
Arne Morten Kvarving 2023-10-24 13:59:30 +02:00
parent 0ceb57e206
commit 12a1b6f08b

View File

@ -176,7 +176,11 @@ bool ASM::readXML (std::istream& is, IntMat& MNPC, std::vector<Vec3>& nodes,
{
Vec3 X;
std::istringstream iss(data);
#if SP_DEBUG > 1
for (size_t inod = 0; iss; inod++)
#else
while (iss)
#endif
{
iss >> X;
if (iss)
@ -194,7 +198,11 @@ bool ASM::readXML (std::istream& is, IntMat& MNPC, std::vector<Vec3>& nodes,
{
IntVec mnpc(nenod);
std::istringstream iss(data);
#if SP_DEBUG > 1
for (size_t iel = 0; iss; iel++)
#else
while (iss)
#endif
{
for (int& n : mnpc) iss >> n;
if (iss)