mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Fix gcc warnings
Fixed some gcc warnings about unused scoped typedefs and implicit conversion issues.
This commit is contained in:
parent
47818553cb
commit
9abaf0190f
@ -559,7 +559,6 @@ CellDerivativeFor2DCell(const FieldVecType &field,
|
||||
CellShapeTag)
|
||||
{
|
||||
typedef typename FieldVecType::ComponentType FieldType;
|
||||
typedef vtkm::Vec<FieldType,3> GradientType;
|
||||
|
||||
// We have an underdetermined system in 3D, so create a 2D space in the
|
||||
// plane that the polygon sits.
|
||||
|
@ -929,7 +929,6 @@ WorldCoordinatesToParametricCoordinates(
|
||||
//
|
||||
|
||||
typedef typename WorldCoordVector::ComponentType Vector3;
|
||||
typedef typename Vector3::ComponentType T;
|
||||
|
||||
Vector3 pcoords;
|
||||
|
||||
|
@ -75,11 +75,11 @@ void TestNewtonsMethodTemplate()
|
||||
Vector3 expected2(2.0f/3.0f, 2.0f/3.0f, 1.0f/3.0f);
|
||||
|
||||
Vector3 initialGuess;
|
||||
for (initialGuess[0] = 0.25; initialGuess[0] <= 1; initialGuess[0] += 0.25)
|
||||
for (initialGuess[0] = 0.25f; initialGuess[0] <= 1; initialGuess[0] += 0.25f)
|
||||
{
|
||||
for (initialGuess[1] = 0.25; initialGuess[1] <= 1; initialGuess[1] += 0.25)
|
||||
for (initialGuess[1] = 0.25f; initialGuess[1] <= 1; initialGuess[1] += 0.25f)
|
||||
{
|
||||
for (initialGuess[2] = 0.25; initialGuess[2] <= 1; initialGuess[2] +=0.25)
|
||||
for (initialGuess[2] = 0.25f; initialGuess[2] <= 1; initialGuess[2] +=0.25f)
|
||||
{
|
||||
std::cout << " " << initialGuess << std::endl;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user