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

@@ -1088,13 +1088,12 @@ Standard_Boolean IGESData_ParamReader::ReadEnts
Standard_Integer indmax = index+thenbitem*thetermsz-1;
val = new IGESData_HArray1OfIGESEntity (index , indmax);
Standard_Integer ind = index;
Standard_Integer nbneg = 0, nbnul = 0;
Standard_Integer nbnul = 0;
Standard_Integer i; // svv Jan11 2000 : porting on DEC
for (i = FirstRead(); i > 0; i = NextRead()) {
Standard_Integer nval;
if (!ReadingEntityNumber(i,nval)) nval = 0; //return Standard_False;
if (nval < 0) nbneg ++;
if (nval > 0) {
DeclareAndCast(IGESData_IGESEntity,anent,IR->BoundEntity(nval));
if (anent.IsNull()) nbnul ++;