1
0
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:
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

@ -553,7 +553,6 @@ GeomAbs_CurveType Adaptor3d_IsoCurve::GetType() const {
Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso"); Standard_NoSuchObject::Raise("Adaptor3d_IsoCurve:NoneIso");
// portage WNT // portage WNT
return GeomAbs_OtherCurve; return GeomAbs_OtherCurve;
break;
} }
} }
break; break;

View File

@ -431,7 +431,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
else { else {
return GeomAbs_Plane; return GeomAbs_Plane;
} }
break;
} }
case GeomAbs_Circle: case GeomAbs_Circle:
@ -447,7 +446,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
else { else {
return GeomAbs_SurfaceOfExtrusion; return GeomAbs_SurfaceOfExtrusion;
} }
break;
} }
// JAG 10.11.95 // JAG 10.11.95
@ -460,7 +458,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
else { else {
return GeomAbs_SurfaceOfExtrusion; return GeomAbs_SurfaceOfExtrusion;
} }
break;
} }
case GeomAbs_Parabola: case GeomAbs_Parabola:
@ -472,7 +469,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
else { else {
return GeomAbs_SurfaceOfExtrusion; return GeomAbs_SurfaceOfExtrusion;
} }
break;
} }
case GeomAbs_Hyperbola: case GeomAbs_Hyperbola:
@ -484,7 +480,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfLinearExtrusion::GetType() const
else { else {
return GeomAbs_SurfaceOfExtrusion; return GeomAbs_SurfaceOfExtrusion;
} }
break;
} }
default: default:

View File

@ -596,7 +596,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfRevolution::GetType() const
return bRet; return bRet;
} }
} }
break;
}//case GeomAbs_Line: }//case GeomAbs_Line:
// //
case GeomAbs_Circle: { case GeomAbs_Circle: {
@ -639,7 +638,6 @@ GeomAbs_SurfaceType Adaptor3d_SurfaceOfRevolution::GetType() const
} }
return bRet; return bRet;
} }
break;
} }
// //
default: default:

View File

@ -336,7 +336,6 @@ static Standard_Boolean IsIn (BRepTopAdaptor_FClass2d& FC,
gp_Pnt2d P = AC.Value(QU.Parameter(i)); gp_Pnt2d P = AC.Value(QU.Parameter(i));
if (FC.Perform(P, Standard_False) == TopAbs_OUT) { if (FC.Perform(P, Standard_False) == TopAbs_OUT) {
return Standard_False; return Standard_False;
break;
} }
} }
return Standard_True; return Standard_True;
@ -481,7 +480,6 @@ Standard_Boolean BRepFeat::IsInside(const TopoDS_Face& F1,
Geom2dAdaptor_Curve AC(C,f1,l1); Geom2dAdaptor_Curve AC(C,f1,l1);
if (!IsIn(FC,AC)) { if (!IsIn(FC,AC)) {
return Standard_False; return Standard_False;
break;
} }
} }
return Standard_True; return Standard_True;

View File

@ -3934,7 +3934,6 @@ static Standard_Boolean IsInOut (BRepTopAdaptor_FClass2d& FC,
gp_Pnt2d P = AC.Value(QU.Parameter(i)); gp_Pnt2d P = AC.Value(QU.Parameter(i));
if (FC.Perform(P) != S) { if (FC.Perform(P) != S) {
return Standard_False; return Standard_False;
break;
} }
} }
return Standard_True; return Standard_True;

View File

@ -23,7 +23,7 @@
#include <CDF.ixx> #include <CDF.ixx>
#include <Standard_Failure.hxx> #include <Standard_Failure.hxx>
void static CDF_InitApplication () { static void CDF_InitApplication () {
static Standard_Boolean FirstApplication = Standard_True; static Standard_Boolean FirstApplication = Standard_True;

View File

@ -68,12 +68,6 @@ static void D02d(const Standard_Address C, const Standard_Real U,
PP.SetCoord(P.X(),P.Y(),0.); PP.SetCoord(P.X(),P.Y(),0.);
} }
static inline void D13d(const Standard_Address C, const Standard_Real U,
gp_Pnt& P, gp_Vec& V1)
{
((Adaptor3d_Curve*)C)->D1(U,P,V1);
}
static inline void D23d(const Standard_Address C, const Standard_Real U, static inline void D23d(const Standard_Address C, const Standard_Real U,
gp_Pnt& P, gp_Vec& V1, gp_Vec& V2) gp_Pnt& P, gp_Vec& V1, gp_Vec& V2)
{ {

View File

@ -160,7 +160,6 @@ Handle(Draw_Drawable3D) DDataStd_DrawDriver::Drawable (const TDF_Label& L) const
case TDataXtd_POINT : case TDataXtd_POINT :
{ {
return DrawableShape(L,Draw_jaune,Standard_False); return DrawableShape(L,Draw_jaune,Standard_False);
break;
} }
case TDataXtd_LINE : case TDataXtd_LINE :
case TDataXtd_CIRCLE : case TDataXtd_CIRCLE :
@ -168,7 +167,6 @@ Handle(Draw_Drawable3D) DDataStd_DrawDriver::Drawable (const TDF_Label& L) const
case TDataXtd_SPLINE : case TDataXtd_SPLINE :
{ {
return DrawableShape(L,Draw_cyan,Standard_False); return DrawableShape(L,Draw_cyan,Standard_False);
break;
} }
case TDataXtd_ANY_GEOM : case TDataXtd_ANY_GEOM :
{ {

View File

@ -27,8 +27,4 @@ struct Tcl_Interp;
typedef Tcl_Interp *Draw_PInterp; typedef Tcl_Interp *Draw_PInterp;
#include <Standard_Type.hxx>
inline const Handle(Standard_Type)& STANDARD_TYPE(Draw_PInterp) {return *((Handle(Standard_Type)*)0);}
#endif #endif

View File

@ -1396,7 +1396,6 @@ LRESULT APIENTRY DrawWindow::DrawProc(HWND hWnd, UINT wMsg, WPARAM wParam, LPARA
localObjet->WExpose(); localObjet->WExpose();
localObjet->Redraw(); localObjet->Redraw();
return 0l; return 0l;
break;
} }
default: default:

View File

@ -308,7 +308,6 @@ void Extrema_ExtElCS::Perform(const gp_Circ& C,
mySqDist->SetValue(1, aDist * aDist); mySqDist->SetValue(1, aDist * aDist);
} else { } else {
Standard_Integer aNbExt = anExtC.NbExt(); Standard_Integer aNbExt = anExtC.NbExt();
gp_Pnt aCenter = C.Location();
Standard_Integer i; Standard_Integer i;
Standard_Integer aCurI = 1; Standard_Integer aCurI = 1;
Standard_Real aTolConf = Precision::Confusion(); Standard_Real aTolConf = Precision::Confusion();

View File

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

View File

@ -38,8 +38,6 @@
//#endif //#endif
const Standard_CString MAGICNUMBER = "CMPFILE"; const Standard_CString MAGICNUMBER = "CMPFILE";
const Standard_CString ENDOFNORMALEXTENDEDSECTION = "BEGIN_REF_SECTION";
const Standard_Integer SIZEOFNORMALEXTENDEDSECTION = 16;
//======================================================================= //=======================================================================
//function : FSD_CmpFile //function : FSD_CmpFile
@ -281,49 +279,6 @@ void FSD_CmpFile::ReadExtendedLine(TCollection_ExtendedString& buffer)
} }
FlushEndOfLine(); 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
} }
//======================================================================= //=======================================================================

View File

@ -21,7 +21,7 @@
#ifndef Graphic3d_TRANS_MODE_FLAGS_HXX #ifndef Graphic3d_TRANS_MODE_FLAGS_HXX
#define Graphic3d_TRANS_MODE_FLAGS_HXX #define Graphic3d_TRANS_MODE_FLAGS_HXX
Standard_EXPORT typedef Standard_Integer Graphic3d_TransModeFlags; typedef Standard_Integer Graphic3d_TransModeFlags;
enum { enum {
Graphic3d_TMF_None = 0x0000, Graphic3d_TMF_None = 0x0000,

View File

@ -70,7 +70,7 @@ namespace
} }
static const Standard_Size NEIGHBOR_PIXELS_NB = 8; static const Standard_Size NEIGHBOR_PIXELS_NB = 8;
struct static struct
{ {
Standard_Integer row_inc; Standard_Integer row_inc;
Standard_Integer col_inc; Standard_Integer col_inc;
@ -100,7 +100,7 @@ namespace
&& aCol < theData.SizeY(); && aCol < theData.SizeY();
} }
} }
static const NEIGHBOR_PIXELS[NEIGHBOR_PIXELS_NB] = const NEIGHBOR_PIXELS[NEIGHBOR_PIXELS_NB] =
{ {
{-1, -1}, {-1, 0}, {-1, 1}, {-1, -1}, {-1, 0}, {-1, 1},
{ 0, -1}, { 0, 1}, { 0, -1}, { 0, 1},

View File

@ -261,7 +261,6 @@ Quantity_Color Image_PixMap::PixelColor (const Standard_Integer theX,
Quantity_Parameter (Standard_Real (aPixel)), Quantity_Parameter (Standard_Real (aPixel)),
Quantity_Parameter (Standard_Real (aPixel)), Quantity_Parameter (Standard_Real (aPixel)),
Quantity_TOC_RGB); Quantity_TOC_RGB);
break;
} }
case ImgRGBAF: case ImgRGBAF:
{ {

View File

@ -373,7 +373,6 @@
else { else {
return 2; return 2;
} }
break;
} }
default: default:
break; break;

View File

@ -34,7 +34,7 @@ const int ENTI_AMP = 1;
const int ENTI_LT = 2; const int ENTI_LT = 2;
const int ENTI_GT = 3; const int ENTI_GT = 3;
const int ENTI_QUOT = 4; const int ENTI_QUOT = 4;
const int ENTI_APOS = 5; //const int ENTI_APOS = 5;
struct entityRef { struct entityRef {
const char * name; const char * name;

View File

@ -38,7 +38,6 @@
//#include <ctype.h> //#include <ctype.h>
const int XML_MIN_BUFFER = 10; const int XML_MIN_BUFFER = 10;
const int MAX_ATTRIBUTES = 512;
const int FILE_NONVALUE = -1; const int FILE_NONVALUE = -1;
typedef enum { typedef enum {

View File

@ -101,8 +101,8 @@
static const LXMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull }; static const LXMLCh gEndElement[] = { chOpenAngle, chForwardSlash, chNull };
static const LXMLCh gEndElement1[]= { chForwardSlash, chNull }; static const LXMLCh gEndElement1[]= { chForwardSlash, chNull };
static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull }; //static const LXMLCh gEndPI[] = { chQuestion, chCloseAngle, chNull };
static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull }; //static const LXMLCh gStartPI[] = { chOpenAngle, chQuestion, chNull };
static const LXMLCh gXMLDecl1[] = static const LXMLCh gXMLDecl1[] =
{ chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l { chOpenAngle, chQuestion, chLatin_x, chLatin_m, chLatin_l
, chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i , chSpace, chLatin_v, chLatin_e, chLatin_r, chLatin_s, chLatin_i
@ -113,11 +113,13 @@ static const LXMLCh gXMLDecl2[] =
, chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual , chLatin_o, chLatin_d, chLatin_i, chLatin_n, chLatin_g, chEqual
, chDoubleQuote, chNull , chDoubleQuote, chNull
}; };
/*
static const LXMLCh gXMLDecl3[] = static const LXMLCh gXMLDecl3[] =
{ chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a { chDoubleQuote, chSpace, chLatin_s, chLatin_t, chLatin_a
, chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o , chLatin_n, chLatin_d, chLatin_a, chLatin_l, chLatin_o
, chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull , chLatin_n, chLatin_e, chEqual, chDoubleQuote, chNull
}; };
*/
static const LXMLCh gXMLDecl4[] = static const LXMLCh gXMLDecl4[] =
{ chDoubleQuote, chQuestion, chCloseAngle { chDoubleQuote, chQuestion, chCloseAngle
, chLF, chNull , chLF, chNull
@ -132,6 +134,7 @@ static const LXMLCh gStartComment[] =
{ chOpenAngle, chBang, chDash, chDash, chNull }; { chOpenAngle, chBang, chDash, chDash, chNull };
static const LXMLCh gEndComment[] = static const LXMLCh gEndComment[] =
{ chDash, chDash, chCloseAngle, chNull }; { chDash, chDash, chCloseAngle, chNull };
/*
static const LXMLCh gStartDoctype[] = static const LXMLCh gStartDoctype[] =
{ chOpenAngle, chBang, chLatin_D, chLatin_O, chLatin_C, chLatin_T, { chOpenAngle, chBang, chLatin_D, chLatin_O, chLatin_C, chLatin_T,
chLatin_Y, chLatin_P, chLatin_E, chSpace, chNull chLatin_Y, chLatin_P, chLatin_E, chSpace, chNull
@ -152,6 +155,7 @@ static const LXMLCh gNotation[] =
{ chLatin_N, chLatin_D, chLatin_A, chLatin_T, chLatin_A, { chLatin_N, chLatin_D, chLatin_A, chLatin_T, chLatin_A,
chSpace, chDoubleQuote, chNull chSpace, chDoubleQuote, chNull
}; };
*/
static LXMLCh * getEncodingName (const LXMLCh * theEncodingName) static LXMLCh * getEncodingName (const LXMLCh * theEncodingName)
{ {

View File

@ -21,7 +21,7 @@
#ifndef MeshVS_BUILDERPRIORITY_HXX #ifndef MeshVS_BUILDERPRIORITY_HXX
#define MeshVS_BUILDERPRIORITY_HXX #define MeshVS_BUILDERPRIORITY_HXX
Standard_EXPORT typedef Standard_Integer MeshVS_BuilderPriority; typedef Standard_Integer MeshVS_BuilderPriority;
enum enum
{ {

View File

@ -21,7 +21,7 @@
#ifndef MeshVS_DISPLAY_MODE_FLAGS_HXX #ifndef MeshVS_DISPLAY_MODE_FLAGS_HXX
#define MeshVS_DISPLAY_MODE_FLAGS_HXX #define MeshVS_DISPLAY_MODE_FLAGS_HXX
Standard_EXPORT typedef Standard_Integer MeshVS_DisplayModeFlags; typedef Standard_Integer MeshVS_DisplayModeFlags;
enum enum
{ {

View File

@ -21,7 +21,7 @@
#ifndef MeshVS_ENTITYTYPEHXX #ifndef MeshVS_ENTITYTYPEHXX
#define MeshVS_ENTITYTYPEHXX #define MeshVS_ENTITYTYPEHXX
Standard_EXPORT typedef enum typedef enum
{ {
MeshVS_ET_NONE = 0x00, MeshVS_ET_NONE = 0x00,
MeshVS_ET_Node = 0x01, MeshVS_ET_Node = 0x01,
@ -33,8 +33,7 @@ Standard_EXPORT typedef enum
MeshVS_ET_Element = MeshVS_ET_0D | MeshVS_ET_Link | MeshVS_ET_Face | MeshVS_ET_Volume, MeshVS_ET_Element = MeshVS_ET_0D | MeshVS_ET_Link | MeshVS_ET_Face | MeshVS_ET_Volume,
MeshVS_ET_All = MeshVS_ET_Element | MeshVS_ET_Node MeshVS_ET_All = MeshVS_ET_Element | MeshVS_ET_Node
} MeshVS_EntityType;
} MeshVS_EntityType;
#endif #endif

View File

@ -21,7 +21,7 @@
#ifndef MeshVS_SELECTION_MODE_FLAGS_HXX #ifndef MeshVS_SELECTION_MODE_FLAGS_HXX
#define MeshVS_SELECTION_MODE_FLAGS_HXX #define MeshVS_SELECTION_MODE_FLAGS_HXX
Standard_EXPORT typedef enum typedef enum
{ {
MeshVS_SMF_Mesh = 0x0000, MeshVS_SMF_Mesh = 0x0000,
MeshVS_SMF_Node = 0x0001, MeshVS_SMF_Node = 0x0001,
@ -35,8 +35,7 @@ Standard_EXPORT typedef enum
MeshVS_SMF_Group = 0x0100 MeshVS_SMF_Group = 0x0100
} MeshVS_SelectionModeFlags;
} MeshVS_SelectionModeFlags;
#endif #endif

View File

@ -30,14 +30,14 @@
#include <Quantity_Color.hxx> #include <Quantity_Color.hxx>
Standard_EXPORT typedef struct { typedef struct {
unsigned int r1 : 8; unsigned int r1 : 8;
unsigned int g1 : 8; unsigned int g1 : 8;
unsigned int b1 : 8; unsigned int b1 : 8;
unsigned int r2 : 8; unsigned int r2 : 8;
unsigned int g2 : 8; unsigned int g2 : 8;
unsigned int b2 : 8; unsigned int b2 : 8;
} MeshVS_TwoColors; } MeshVS_TwoColors;
Standard_EXPORT Standard_Integer HashCode ( const MeshVS_TwoColors& theKey, Standard_EXPORT Standard_Integer HashCode ( const MeshVS_TwoColors& theKey,

View File

@ -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[] = { 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[] = { static ERROR_TABLE fileErrorTable[] = {
@ -620,9 +620,7 @@ static ERROR_TABLE fileNodeErrorTable[] = {
}; };
#define FILE_NODE_ERR_TABLE_SIZE ( sizeof ( fileNodeErrorTable ) / \ #define FILE_NODE_ERR_TABLE_SIZE (int)(sizeof(fileNodeErrorTable) / sizeof(fileNodeErrorTable[0]))
sizeof ( fileNodeErrorTable[ 0 ] ) \
)
static Standard_Integer _get_comm_error ( DWORD ); static Standard_Integer _get_comm_error ( DWORD );

View File

@ -32,7 +32,7 @@ struct OpenGl_Matrix
Standard_EXPORT void OpenGl_Multiplymat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a, const OpenGl_Matrix *b); Standard_EXPORT void OpenGl_Multiplymat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a, const OpenGl_Matrix *b);
Standard_EXPORT void OpenGl_Transposemat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a); Standard_EXPORT void OpenGl_Transposemat3 (OpenGl_Matrix *c, const OpenGl_Matrix *a);
const static OpenGl_Matrix OpenGl_IdentityMatrix = static const OpenGl_Matrix OpenGl_IdentityMatrix =
{ {
// mat[4][4] // mat[4][4]
{ { 1.0f, 0.0f, 0.0f, 0.0f }, { { 1.0f, 0.0f, 0.0f, 0.0f },

View File

@ -357,10 +357,10 @@ Standard_Integer PCollection_HExtendedString::Location
{ {
if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex ) if (ToIndex > Length() || FromIndex <= 0 || FromIndex > ToIndex )
Standard_OutOfRange::Raise(); 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) { if(Data(i) == C) {
count++; icount++;
if ( count == N ) return (i+1); if ( icount == N ) return (i+1);
} }
return 0 ; return 0 ;
} }

View File

@ -1401,7 +1401,6 @@ void PLib::EvalPolynomial(const Standard_Real Par,
} }
} }
break; break;
break;
} }
case 15 : { case 15 : {
*tmpRA = *tmpPA; tmpRA++; tmpPA++; *tmpRA = *tmpPA; tmpRA++; tmpPA++;

View File

@ -295,7 +295,7 @@ Standard_Integer OCC22595 (Draw_Interpretor& di, Standard_Integer /*argc*/, cons
#include <BRepExtrema_DistShapeShape.hxx> #include <BRepExtrema_DistShapeShape.hxx>
#include <BRepTools.hxx> #include <BRepTools.hxx>
Standard_Boolean static OCC23774Test(const TopoDS_Face& grossPlateFace, const TopoDS_Shape& originalWire, Draw_Interpretor& di) static Standard_Boolean OCC23774Test(const TopoDS_Face& grossPlateFace, const TopoDS_Shape& originalWire, Draw_Interpretor& di)
{ {
BRepExtrema_DistShapeShape distShapeShape(grossPlateFace,originalWire,Extrema_ExtFlag_MIN); BRepExtrema_DistShapeShape distShapeShape(grossPlateFace,originalWire,Extrema_ExtFlag_MIN);
if(!distShapeShape.IsDone()) { if(!distShapeShape.IsDone()) {

View File

@ -219,7 +219,7 @@ void rec_finfile() { }
/* GESTION DES RECORDS */ /* GESTION DES RECORDS */
/* ENREGISTRER UN RECORD (deja pret) */ /* ENREGISTRER UN RECORD (deja pret) */
void static rec_new(struct rec* newrec) static void rec_new(struct rec* newrec)
/* nouveau record a enregistrer */ /* nouveau record a enregistrer */
{ {
nbrec ++ ; nbrec ++ ;

View File

@ -144,7 +144,7 @@ static void MapShapes(const TDF_Label& LCible, const TDF_Label& LSource, TopTool
//purpose : TNaming //purpose : TNaming
//======================================================================= //=======================================================================
void static SubstituteShape(const TopoDS_Shape& oldShape, static void SubstituteShape(const TopoDS_Shape& oldShape,
const TopoDS_Shape& newShape, const TopoDS_Shape& newShape,
TNaming_DataMapOfShapePtrRefShape& amap) TNaming_DataMapOfShapePtrRefShape& amap)
{ {

View File

@ -281,11 +281,9 @@ Standard_Boolean TNaming_Localizer::IsNew (const TopoDS_Shape& S,
for (; itLab.More(); itLab.Next()) { for (; itLab.More(); itLab.Next()) {
if (itLab.OldShape().IsSame(S)) { if (itLab.OldShape().IsSame(S)) {
return Standard_False; return Standard_False;
break;
} }
if (itLab.NewShape().IsSame(S)) { if (itLab.NewShape().IsSame(S)) {
return Standard_True; return Standard_True;
break;
} }
} }
#ifdef DEB #ifdef DEB

View File

@ -29,7 +29,7 @@
#include <gp_Trsf.hxx> #include <gp_Trsf.hxx>
#include <TopLoc_TrsfPtr.hxx> #include <TopLoc_TrsfPtr.hxx>
const static gp_Trsf TheIdentity; static const gp_Trsf TheIdentity;
static Standard_Boolean IsInternalIdentity(const TopLoc_Location& loc) static Standard_Boolean IsInternalIdentity(const TopLoc_Location& loc)

View File

@ -2136,18 +2136,15 @@ static Standard_Boolean disjPerformCommon(const TopTools_IndexedMapOfShape& theM
switch (ires) { switch (ires) {
case RESNULL: { case RESNULL: {
continue; continue;
break;
} }
case RESSHAPE12 : { case RESSHAPE12 : {
aMapOfCommonOfCouple.Add(sol1); aMapOfCommonOfCouple.Add(sol1);
aMapOfCommonOfCouple.Add(sol2); aMapOfCommonOfCouple.Add(sol2);
continue; continue;
break;
} }
case RESSHAPE1 : { case RESSHAPE1 : {
aMapOfCommonOfCouple.Add(sol1); aMapOfCommonOfCouple.Add(sol1);
continue; continue;
break;
} }
case RESSHAPE2 : { case RESSHAPE2 : {
aMapOfCommonOfCouple.Add(sol2); aMapOfCommonOfCouple.Add(sol2);