mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0024058: Eliminate compiler warning C4702 in MSVC++ with warning level 4
Got rid of most of warnings of C4702 type: unreachable code. Returned some #ifdef DEB Fixed tabs formatting Fixed some mistakes in code
This commit is contained in:
@@ -53,12 +53,12 @@ static Standard_Integer BUC60738 (Draw_Interpretor& di, Standard_Integer /*argc*
|
||||
|
||||
//display mode = Shading
|
||||
theAISShape->SetDisplayMode(1);
|
||||
|
||||
|
||||
//get the drawer
|
||||
Handle_AIS_Drawer theDrawer = theAISShape->Attributes();
|
||||
Handle_Prs3d_ShadingAspect theShadingAspect = theDrawer->ShadingAspect();
|
||||
Handle_Graphic3d_AspectFillArea3d theAspectFillArea3d = theShadingAspect->Aspect();
|
||||
|
||||
|
||||
//allow to display the edges
|
||||
theAspectFillArea3d->SetEdgeOn();
|
||||
//set the style to Dash
|
||||
@@ -76,80 +76,10 @@ static Standard_Integer BUC60738 (Draw_Interpretor& di, Standard_Integer /*argc*
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int BUC60606(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
|
||||
|
||||
di << "Use satread command instead of " << argv[0] << "\n";
|
||||
return -1;
|
||||
|
||||
if(argc!=3) {
|
||||
di << "Usage : " << argv[0] << "name filename" << "\n";
|
||||
return -1;
|
||||
}
|
||||
// Handle_AcisData_AcisModel satModel = new AcisData_AcisModel();
|
||||
// Standard_Character *DD = Tcl_GetVar(di.Interp(),"Draw_DataDir",TCL_GLOBAL_ONLY);
|
||||
|
||||
// Standard_Character *filename = new Standard_Character [strlen(DD)+strlen(argv[2])+1];
|
||||
// Sprintf(filename,"%s/%s",DD,argv[2]);
|
||||
|
||||
// satModel->ReadSaveFile(filename);
|
||||
|
||||
// Standard_Boolean success = !satModel.IsNull();
|
||||
// cout << "n<-- SAT model read : " << (success?"true":"false") << endl << flush;
|
||||
// if ( success ) {
|
||||
// Standard_Character *Ch=new Standard_Character [strlen(argv[1])+3];
|
||||
// Handle_TopTools_HSequenceOfShape satShapes = satModel->GetShapes();
|
||||
// Standard_Integer nbs=satShapes->Length();
|
||||
// for(Standard_Integer i=1;i<=nbs;i++) {
|
||||
// TopoDS_Shape xShape = satShapes->Value(i);
|
||||
// if(!xShape.IsNull()) {
|
||||
// Sprintf(Ch,"%s_%i",argv[1],i);
|
||||
// DBRep::Set(Ch,xShape);
|
||||
// } else cout << "The shape " << argv[1] << "_" << i << " is NULL !" << endl;
|
||||
// }
|
||||
// }
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int BUC60627(Draw_Interpretor& di, Standard_Integer argc, const char ** argv) {
|
||||
di << "Use satread command instead of " << argv[0] << "\n";
|
||||
return -1;
|
||||
|
||||
// perform the conversion
|
||||
// as in AcisData.cdl --- that's alright
|
||||
// if(argc!=3) {
|
||||
// cerr << "Usage : " << argv[0] << " BREP file" << endl;
|
||||
// return -1;
|
||||
// }
|
||||
// TopoDS_Shape shapeModel=DBRep::Get(argv[1]);
|
||||
// Handle(AcisData_AcisModel) satModel = new AcisData_AcisModel();
|
||||
// satModel->AddShape( shapeModel ); // memorizes "kegel2.brep"
|
||||
// Standard_CString stringData;
|
||||
// Standard_Integer nbChar; // write intermediate stringin order to compute ACIS data
|
||||
// satModel->WriteStringData( stringData, nbChar );
|
||||
// if ( satModel->IsDone() ) {
|
||||
// satModel = new AcisData_AcisModel();
|
||||
// satModel->ReadStringData( stringData );
|
||||
// if ( satModel->IsDone() ) {
|
||||
// // write into file
|
||||
// satModel->WriteSaveFile( argv[2] );
|
||||
// if ( ! satModel->IsDone() ) {
|
||||
// cout << "The SAT madel does not wroute." << endl;
|
||||
// }
|
||||
// } else cout << "The SAT model does not read from a string." << endl;
|
||||
// // satModel->ReadStringData( stringData );
|
||||
// } else cout << "The SAT model does not wroute into a string." << endl;
|
||||
// // satModel->WriteStringData( stringData, nbChar );
|
||||
return 1;
|
||||
}
|
||||
|
||||
void QABugs::Commands_4(Draw_Interpretor& theCommands) {
|
||||
const char *group = "QABugs";
|
||||
|
||||
theCommands.Add("BUC60738","BUC60738",__FILE__,BUC60738,group);
|
||||
theCommands.Add("BUC60606","BUC60606 name",__FILE__,BUC60606,group);
|
||||
theCommands.Add("BUC60627","BUC60627 name",__FILE__,BUC60627,group);
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
Reference in New Issue
Block a user