mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026788: Compiler warnings when OCCT_DEBUG is enabled
Clean-up in code causing warnings when OCCT_DEBUG is enabled Minor corrections: - new compiler warnings on VC++ 14 - rename of "PPC" variables that are said to caused conflicts on PowerPC - removal of unused header TopOpeBRep/TopOpeBRep_tools.hxx
This commit is contained in:
@@ -4595,9 +4595,7 @@ Standard_Boolean ViewerTest::PickObjects(Handle(TColStd_HArray1OfTransient)& ar
|
||||
}
|
||||
|
||||
// step 2 : wait for the selection...
|
||||
// Standard_Boolean IsGood (Standard_False);
|
||||
// Standard_Integer NbPick(0);
|
||||
Standard_Boolean NbPickGood (0),NbToReach(arr->Length());
|
||||
Standard_Integer NbPickGood (0),NbToReach(arr->Length());
|
||||
Standard_Integer NbPickFail(0);
|
||||
Standard_Integer argccc = 5;
|
||||
const char *bufff[] = { "A", "B", "C","D", "E" };
|
||||
@@ -4607,7 +4605,7 @@ Standard_Boolean ViewerTest::PickObjects(Handle(TColStd_HArray1OfTransient)& ar
|
||||
while(NbPickGood<NbToReach && NbPickFail <= MaxPick){
|
||||
while(ViewerMainLoop(argccc,argvvv)){}
|
||||
Standard_Integer NbStored = TheAISContext()->NbSelected();
|
||||
if((unsigned int ) NbStored != NbPickGood)
|
||||
if(NbStored != NbPickGood)
|
||||
NbPickGood= NbStored;
|
||||
else
|
||||
NbPickFail++;
|
||||
@@ -4616,7 +4614,8 @@ Standard_Boolean ViewerTest::PickObjects(Handle(TColStd_HArray1OfTransient)& ar
|
||||
|
||||
// step3 get result.
|
||||
|
||||
if((unsigned int ) NbPickFail >= NbToReach) return Standard_False;
|
||||
if (NbPickFail >= NbToReach)
|
||||
return Standard_False;
|
||||
|
||||
Standard_Integer i(0);
|
||||
for(TheAISContext()->InitSelected();
|
||||
@@ -4769,8 +4768,7 @@ Standard_Boolean ViewerTest::PickShapes (const TopAbs_ShapeEnum TheType,
|
||||
}
|
||||
|
||||
// step 2 : wait for the selection...
|
||||
|
||||
Standard_Boolean NbPickGood (0),NbToReach(thearr->Length());
|
||||
Standard_Integer NbPickGood (0),NbToReach(thearr->Length());
|
||||
Standard_Integer NbPickFail(0);
|
||||
Standard_Integer argccc = 5;
|
||||
const char *bufff[] = { "A", "B", "C","D", "E" };
|
||||
@@ -4780,7 +4778,7 @@ Standard_Boolean ViewerTest::PickShapes (const TopAbs_ShapeEnum TheType,
|
||||
while(NbPickGood<NbToReach && NbPickFail <= MaxPick){
|
||||
while(ViewerMainLoop(argccc,argvvv)){}
|
||||
Standard_Integer NbStored = TheAISContext()->NbSelected();
|
||||
if((unsigned int ) NbStored != NbPickGood)
|
||||
if (NbStored != NbPickGood)
|
||||
NbPickGood= NbStored;
|
||||
else
|
||||
NbPickFail++;
|
||||
@@ -4789,7 +4787,8 @@ Standard_Boolean ViewerTest::PickShapes (const TopAbs_ShapeEnum TheType,
|
||||
|
||||
// step3 get result.
|
||||
|
||||
if((unsigned int ) NbPickFail >= NbToReach) return Standard_False;
|
||||
if (NbPickFail >= NbToReach)
|
||||
return Standard_False;
|
||||
|
||||
Standard_Integer i(0);
|
||||
for(TheAISContext()->InitSelected();TheAISContext()->MoreSelected();TheAISContext()->NextSelected()){
|
||||
|
@@ -1694,7 +1694,7 @@ static int VLenghtDimension(Draw_Interpretor& di, Standard_Integer argc, const c
|
||||
gp_Pnt A=BRep_Tool::Pnt(aVertex1);
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
gp_Pnt C = BRep_Tool::Pnt(aVertex2);
|
||||
gp_Pnt C = BRep_Tool::Pnt(aVertex2); (void)C;
|
||||
#endif
|
||||
|
||||
gp_Pnt aProjB = aDeltaVertexFace.Point(1);
|
||||
|
Reference in New Issue
Block a user