From ac7af6f19f7f20563ba91402733b55c0400607c7 Mon Sep 17 00:00:00 2001 From: gdd Date: Fri, 7 Oct 2011 07:48:48 +0000 Subject: [PATCH] Remove compilation warnings --- src/GLViewer/GLViewer_BaseObjects.cxx | 4 ++-- src/GLViewer/GLViewer_ViewPort2d.cxx | 2 -- src/LightApp/LightApp_Module.cxx | 6 +++--- src/VTKViewer/VTKViewer_AppendFilter.cxx | 8 ++++---- src/VTKViewer/VTKViewer_TransformFilter.cxx | 4 ++-- 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/GLViewer/GLViewer_BaseObjects.cxx b/src/GLViewer/GLViewer_BaseObjects.cxx index 6fc9f8781..c45df4157 100644 --- a/src/GLViewer/GLViewer_BaseObjects.cxx +++ b/src/GLViewer/GLViewer_BaseObjects.cxx @@ -1102,7 +1102,7 @@ GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer return false; GLfloat xa, xb, ya, yb, l; GLfloat rsin, rcos, r, ra, rb; - GLboolean update; + // GLboolean update; GLboolean selected = myIsSel; myIsSel = GL_FALSE; @@ -1147,7 +1147,7 @@ GLboolean GLViewer_Polyline::select( GLfloat x, GLfloat y, GLfloat tol, GLViewer else myHighFlag = GL_TRUE; - update = ( GLboolean )( myIsSel != selected ); + // update = ( GLboolean )( myIsSel != selected ); // cout << "GLViewer_Polyline::select complete with " << (int)myIsSel << endl; diff --git a/src/GLViewer/GLViewer_ViewPort2d.cxx b/src/GLViewer/GLViewer_ViewPort2d.cxx index e8552f2d3..8e9a13dfa 100644 --- a/src/GLViewer/GLViewer_ViewPort2d.cxx +++ b/src/GLViewer/GLViewer_ViewPort2d.cxx @@ -1381,13 +1381,11 @@ void GLViewer_ViewPort2d::onMaybeTip( QPoint thePoint, QString& theText, QFont& if( !aList.isEmpty() ) { - int index = 0; int str_size = aList.first().length(); for( int i = 1, size = aList.count(); i < size; i++ ) { if ( str_size < (int)aList[i].length() ) { - index = i; str_size = aList[i].length(); } } diff --git a/src/LightApp/LightApp_Module.cxx b/src/LightApp/LightApp_Module.cxx index 811d4990c..cb662489b 100644 --- a/src/LightApp/LightApp_Module.cxx +++ b/src/LightApp/LightApp_Module.cxx @@ -156,9 +156,9 @@ void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel, if( theIsUpdateDataModel ){ if( CAM_DataModel* aDataModel = dataModel() ){ if ( LightApp_DataModel* aModel = dynamic_cast( aDataModel ) ) { - SUIT_DataObject* aParent = NULL; - if(theDataObject && theDataObject != aDataModel->root()) - aParent = theDataObject->parent(); + //SUIT_DataObject* aParent = NULL; + //if(theDataObject && theDataObject != aDataModel->root()) + // aParent = theDataObject->parent(); LightApp_DataObject* anObject = dynamic_cast(theDataObject); LightApp_Study* aStudy = dynamic_cast(getApp()->activeStudy()); diff --git a/src/VTKViewer/VTKViewer_AppendFilter.cxx b/src/VTKViewer/VTKViewer_AppendFilter.cxx index ff9e2676f..8b685a591 100644 --- a/src/VTKViewer/VTKViewer_AppendFilter.cxx +++ b/src/VTKViewer/VTKViewer_AppendFilter.cxx @@ -262,8 +262,8 @@ VTKViewer_AppendFilter vtkInformationVector *outputVector) { int idx; - vtkIdType numPts, numCells, newCellId, cellId; - vtkCellData *cd; + vtkIdType numPts, numCells, cellId; + // vtkCellData *cd; vtkIdList *ptIds; vtkDataSet *ds; int numInputs = this->GetNumberOfInputConnections(0); @@ -321,11 +321,11 @@ VTKViewer_AppendFilter if (ds != NULL) { numCells = ds->GetNumberOfCells(); - cd = ds->GetCellData(); + // cd = ds->GetCellData(); // copy cell and cell data for (cellId=0; cellIdGetCellPoints(cellId, ptIds); - newCellId = output->InsertNextCell(ds->GetCellType(cellId), ptIds); + output->InsertNextCell(ds->GetCellType(cellId), ptIds); } } } diff --git a/src/VTKViewer/VTKViewer_TransformFilter.cxx b/src/VTKViewer/VTKViewer_TransformFilter.cxx index 83147f4f4..dc2bc83cc 100755 --- a/src/VTKViewer/VTKViewer_TransformFilter.cxx +++ b/src/VTKViewer/VTKViewer_TransformFilter.cxx @@ -56,7 +56,7 @@ int VTKViewer_TransformFilter::RequestData( vtkPoints *inPts; vtkPoints *newPts; - int numPts, numCells; + int numPts/*, numCells*/; vtkPointData *pd=input->GetPointData(), *outPD=output->GetPointData(); vtkCellData *cd=input->GetCellData(), *outCD=output->GetCellData(); output->CopyStructure( input ); @@ -67,7 +67,7 @@ int VTKViewer_TransformFilter::RequestData( inPts = input->GetPoints(); if(!anIsIdentity && inPts){ numPts = inPts->GetNumberOfPoints(); - numCells = input->GetNumberOfCells(); + // numCells = input->GetNumberOfCells(); newPts = vtkPoints::New(); newPts->Allocate(numPts); this->UpdateProgress(.2); -- 2.39.2