mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -563,7 +563,7 @@ static ERROR_TABLE commErrorTable [] = {
|
||||
|
||||
};
|
||||
|
||||
#define COMM_ERR_TABLE_SIZE ( sizeof ( commErrorTable ) / sizeof ( commErrorTable[ 0 ] ) )
|
||||
#define COMM_ERR_TABLE_SIZE (int)(sizeof(commErrorTable) / sizeof(commErrorTable[0]))
|
||||
|
||||
static ERROR_TABLE dirErrorTable[] = {
|
||||
|
||||
@@ -578,7 +578,7 @@ static ERROR_TABLE dirErrorTable[] = {
|
||||
|
||||
};
|
||||
|
||||
#define DIR_ERR_TABLE_SIZE ( sizeof ( dirErrorTable ) / sizeof ( dirErrorTable[ 0 ] ) )
|
||||
#define DIR_ERR_TABLE_SIZE (int)(sizeof(dirErrorTable) / sizeof(dirErrorTable[0]))
|
||||
|
||||
static ERROR_TABLE fileErrorTable[] = {
|
||||
|
||||
@@ -620,9 +620,7 @@ static ERROR_TABLE fileNodeErrorTable[] = {
|
||||
|
||||
};
|
||||
|
||||
#define FILE_NODE_ERR_TABLE_SIZE ( sizeof ( fileNodeErrorTable ) / \
|
||||
sizeof ( fileNodeErrorTable[ 0 ] ) \
|
||||
)
|
||||
#define FILE_NODE_ERR_TABLE_SIZE (int)(sizeof(fileNodeErrorTable) / sizeof(fileNodeErrorTable[0]))
|
||||
|
||||
static Standard_Integer _get_comm_error ( DWORD );
|
||||
|
||||
|
Reference in New Issue
Block a user