1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +03:00

0033379: Coding - Processing Clang-15 warnings

Fixed warning generated by Clang++-15
This commit is contained in:
dpasukhi
2023-05-17 19:45:06 +00:00
committed by vglukhik
parent b2fedee6a1
commit 92e0a76a50
42 changed files with 64 additions and 153 deletions

View File

@@ -85,7 +85,6 @@ Standard_Boolean XmlMDataStd_ExpressionDriver::Paste
myMessageDriver->Send (aMsgString, Message_Fail);
return Standard_False;
}
Standard_Integer i = 1;
while (aNb > 0)
{
Handle(TDF_Attribute) aV;
@@ -100,7 +99,6 @@ Standard_Boolean XmlMDataStd_ExpressionDriver::Paste
// next variable
if (!XmlObjMgt::GetInteger(aVs, aNb)) aNb = 0;
i++;
}
}
@@ -132,10 +130,8 @@ void XmlMDataStd_ExpressionDriver::Paste
{
TCollection_AsciiString aGsStr;
TDF_ListIteratorOfAttributeList it;
Standard_Integer index = 0;
for (it.Initialize(aC->GetVariables()); it.More(); it.Next())
{
index++;
TV = it.Value();
if (!TV.IsNull())
{