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

0024180: Eliminate CLang / GCC compiler warning -Wswitch

Eliminated warnings -Wswitch shown by gcc
Eliminated two new warnings about wrong initialization order
Eliminated warnings about unused functions.
A few more ICC warnings (type conversions) fixed
This commit is contained in:
ski
2013-11-28 11:13:41 +04:00
committed by bugmaster
parent ebeff0a2bc
commit 566f84411f
39 changed files with 299 additions and 120 deletions

View File

@@ -42,7 +42,7 @@ static Standard_Character EvolutionToChar(const TNaming_Evolution theEvol)
case TNaming_MODIFY : return 'M';
case TNaming_DELETE : return 'D';
case TNaming_SELECTED : return 'S';
// case TNaming_REPLACE : return 'R';
case TNaming_REPLACE : return 'M'; // for compatibility case TNaming_REPLACE : return 'R';
default:
Standard_DomainError::Raise("TNaming_Evolution:: Evolution Unknown");
}
@@ -211,9 +211,9 @@ Standard_Boolean BinMNaming_NamedShapeDriver::Paste
case TNaming_SELECTED :
aBuilder.Select(aNewShape, anOldShape);
break;
// case TNaming_REPLACE :
// aBuilder.Replace(anOldShape, aNewShape);
// break;
case TNaming_REPLACE :
aBuilder.Modify(anOldShape, aNewShape); // for compatibility aBuilder.Replace(anOldShape, aNewShape);
break;
default :
Standard_DomainError::Raise("TNaming_Evolution:: Evolution Unknown");
}

View File

@@ -38,8 +38,10 @@
#include <BinMNaming.hxx>
#include <TCollection_AsciiString.hxx>
#include <TDF_Tool.hxx>
#define NULL_ENTRY "0:0"
#define OBSOLETE_NUM sizeof(Standard_Integer)
#define OBSOLETE_NUM (int)sizeof(Standard_Integer)
//=======================================================================
// 'Z' - is reserved for: forfidden to use
//=======================================================================