]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Remove compilation warnings
authorgdd <gdd>
Fri, 7 Oct 2011 07:48:48 +0000 (07:48 +0000)
committergdd <gdd>
Fri, 7 Oct 2011 07:48:48 +0000 (07:48 +0000)
src/GLViewer/GLViewer_BaseObjects.cxx
src/GLViewer/GLViewer_ViewPort2d.cxx
src/LightApp/LightApp_Module.cxx
src/VTKViewer/VTKViewer_AppendFilter.cxx
src/VTKViewer/VTKViewer_TransformFilter.cxx

index 6fc9f8781a7f68f8061e318b091aa9e7d8b39aef..c45df415755d4c73e478c00e6117a1aceafcb9d1 100644 (file)
@@ -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;
 
index e8552f2d3c1309296177ed364c4a452b5d50c85a..8e9a13dfae9410834d16d288ef3a00eb7af2a8e1 100644 (file)
@@ -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();
         }
       }
index 811d4990c7f1489b28c3ba89fbd9478280c46c53..cb662489b8c3f0fdefb6bff8ce69b97563be6380 100644 (file)
@@ -156,9 +156,9 @@ void LightApp_Module::updateObjBrowser( bool theIsUpdateDataModel,
   if( theIsUpdateDataModel ){
     if( CAM_DataModel* aDataModel = dataModel() ){
       if ( LightApp_DataModel* aModel = dynamic_cast<LightApp_DataModel*>( 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<LightApp_DataObject*>(theDataObject);
         LightApp_Study* aStudy = dynamic_cast<LightApp_Study*>(getApp()->activeStudy());
index ff9e2676f67407c980c6b1d6278128ace1f7d47c..8b685a591504713885dbf1c20fcb376a9cbbf53a 100644 (file)
@@ -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; cellId<numCells; cellId++)  {
         ds->GetCellPoints(cellId, ptIds);
-        newCellId = output->InsertNextCell(ds->GetCellType(cellId), ptIds);
+        output->InsertNextCell(ds->GetCellType(cellId), ptIds);
       }
     }
   }
index 83147f4f431a5a68693f41b595873cb016c1c338..dc2bc83cc003ab175d0602ba26d8a5a7783181a8 100755 (executable)
@@ -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);