mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0024284: Some trivial warnings produced by ICC 14
Eliminated ICC 14 warnings: # 82: storage class is not first (e.g. "int static f()" # 2621: attribute "dllexport" does not apply here (e.g. "Standard_EXPORT typedef int qqint;") # 2415: variable "..." of static storage duration was declared but never referenced # 111: statement is unreachable (usually "break" after "return" in cycles)
This commit is contained in:
@@ -357,10 +357,10 @@ Standard_Integer PCollection_HExtendedString::Location
|
||||
{
|
||||
if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex )
|
||||
Standard_OutOfRange::Raise();
|
||||
for(Standard_Integer i = FromIndex-1, count = 0; i <= ToIndex-1; i++)
|
||||
for(Standard_Integer i = FromIndex-1, icount = 0; i <= ToIndex-1; i++)
|
||||
if(Data(i) == C) {
|
||||
count++;
|
||||
if ( count == N ) return (i+1);
|
||||
icount++;
|
||||
if ( icount == N ) return (i+1);
|
||||
}
|
||||
return 0 ;
|
||||
}
|
||||
|
Reference in New Issue
Block a user