1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-14 13:30:48 +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:
abv
2013-10-24 09:22:29 +04:00
committed by bugmaster
parent 9447f91258
commit f24125b9e5
35 changed files with 30 additions and 111 deletions

View File

@@ -20,8 +20,6 @@
#include <OSD.hxx>
const Standard_CString MAGICNUMBER = "BINFILE";
const Standard_CString ENDOFNORMALEXTENDEDSECTION = "BEGIN_REF_SECTION";
const Standard_Integer SIZEOFNORMALEXTENDEDSECTION = 16;
//=======================================================================
//function : FSD_BinaryFile

View File

@@ -38,8 +38,6 @@
//#endif
const Standard_CString MAGICNUMBER = "CMPFILE";
const Standard_CString ENDOFNORMALEXTENDEDSECTION = "BEGIN_REF_SECTION";
const Standard_Integer SIZEOFNORMALEXTENDEDSECTION = 16;
//=======================================================================
//function : FSD_CmpFile
@@ -281,49 +279,6 @@ void FSD_CmpFile::ReadExtendedLine(TCollection_ExtendedString& buffer)
}
FlushEndOfLine();
#if 0
char c = '\0';
Standard_ExtCharacter i = 0,j,count = 0;
Standard_Boolean fin = Standard_False;
Standard_CString tg = ENDOFNORMALEXTENDEDSECTION;
buffer.Clear();
while (!fin && !IsEnd()) {
myStream.get(c);
if (c == tg[count]) count++;
else count = 0;
if (count < SIZEOFNORMALEXTENDEDSECTION) {
i = 0; j = 0;
i += (Standard_ExtCharacter)c;
if (c == '\0') fin = Standard_True;
i = (i << 8);
myStream.get(c);
if (c == tg[count]) count++;
else count = 0;
if (count < SIZEOFNORMALEXTENDEDSECTION) {
if ( c != '\r') {
j += (Standard_ExtCharacter)c;
if (c != '\n' && c != '\r') {
fin = Standard_False;
i |= (0x00FF & j);
buffer += (Standard_ExtCharacter)i;
}
}
}
else {
Storage_StreamExtCharParityError::Raise();
}
}
else {
Storage_StreamExtCharParityError::Raise();
}
}
#endif
}
//=======================================================================