Skip to content
Snippets Groups Projects
Commit 6d94cca3 authored by Julien Fausty's avatar Julien Fausty
Browse files

ConstantArray: fix unused variable warning in test

parent f1c6e277
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,6 @@ int TestConstantArray(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
}
}
int iArr = 0;
for (auto val : vtk::DataArrayValueRange<1>(identity))
{
if (val != 1)
......@@ -82,7 +81,6 @@ int TestConstantArray(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
res = EXIT_FAILURE;
std::cout << "range iterator failed with vtkConstantArray" << std::endl;
}
iArr++;
}
#ifdef VTK_DISPATCH_CONSTANT_ARRAYS
......@@ -100,7 +98,6 @@ int TestConstantArray(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
worker(identity.Get(), destination.Get(), 3.0);
}
iArr = 0;
for (auto val : vtk::DataArrayValueRange<1>(destination))
{
if (val != 3)
......@@ -108,7 +105,6 @@ int TestConstantArray(int vtkNotUsed(argc), char* vtkNotUsed(argv)[])
res = EXIT_FAILURE;
std::cout << "dispatch failed to populate the array with the correct values" << std::endl;
}
iArr++;
}
#endif // VTK_DISPATCH_CONSTANT_ARRAYS
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment