Commit 7d2e8f03 authored by Berk Geveci's avatar Berk Geveci
Browse files

Fixed compile warning in the SMP class.

Change-Id: I32be8e54c7c84656552d4e093d44396ad683a741
parent bc9c4d28
......@@ -177,11 +177,11 @@ public:
TLSIter iter = this->Internal.begin();
std::vector<unsigned char>::iterator iter2 =
this->Initialized.begin();
std::vector<unsigned char>::iterator end =
std::vector<unsigned char>::iterator enditer =
this->Initialized.end();
// fast forward to first initialized
// value
while(iter2 != end)
while(iter2 != enditer)
{
if (*iter2)
{
......@@ -192,7 +192,7 @@ public:
}
iterator retVal;
retVal.InitIter = iter2;
retVal.EndIter = end;
retVal.EndIter = enditer;
retVal.Iter = iter;
return retVal;
};
......@@ -235,6 +235,5 @@ private:
return kaapi_get_self_kid();
}
};
#endif
// VTK-HeaderTest-Exclude: vtkSMPThreadLocal.h
......@@ -135,11 +135,11 @@ public:
TLSIter iter = this->Internal.begin();
std::vector<bool>::iterator iter2 =
this->Initialized.begin();
std::vector<bool>::iterator end =
std::vector<bool>::iterator enditer =
this->Initialized.end();
// fast forward to first initialized
// value
while(iter2 != end)
while(iter2 != enditer)
{
if (*iter2)
{
......@@ -150,7 +150,7 @@ public:
}
iterator retVal;
retVal.InitIter = iter2;
retVal.EndIter = end;
retVal.EndIter = enditer;
retVal.Iter = iter;
return retVal;
};
......@@ -191,6 +191,5 @@ private:
return 0;
}
};
#endif
// VTK-HeaderTest-Exclude: vtkSMPThreadLocal.h
......@@ -181,11 +181,11 @@ public:
TLSIter iter = this->Internal.begin();
std::vector<unsigned char>::iterator iter2 =
this->Initialized.begin();
std::vector<unsigned char>::iterator end =
std::vector<unsigned char>::iterator enditer =
this->Initialized.end();
// fast forward to first initialized
// value
while(iter2 != end)
while(iter2 != enditer)
{
if (*iter2)
{
......@@ -196,7 +196,7 @@ public:
}
iterator retVal;
retVal.InitIter = iter2;
retVal.EndIter = end;
retVal.EndIter = enditer;
retVal.Iter = iter;
return retVal;
};
......@@ -233,6 +233,5 @@ private:
return vtkSMPToolsGetThreadID();
}
};
#endif
// VTK-HeaderTest-Exclude: vtkSMPThreadLocal.h
......@@ -164,6 +164,5 @@ public:
private:
TLS Internal;
};
#endif
// VTK-HeaderTest-Exclude: vtkSMPThreadLocal.h
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment