Salome HOME
#18963 Minimize compiler warnings
[modules/paravis.git] / src / Plugins / MEDReader / plugin / MEDReaderIO / vtkELNOFilter.cxx
index dc756b8b5f28e55e79e692015a6a5100ac4516d3..29e6251c82e5ad4981f48a107df55ca9a74b4e10 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2010-2019  CEA/DEN, EDF R&D
+// Copyright (C) 2010-2020  CEA/DEN, EDF R&D
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -36,7 +36,7 @@
 #include "InterpKernelAutoPtr.hxx"
 
 //vtkCxxRevisionMacro(vtkELNOFilter, "$Revision: 1.2.2.2 $");
-vtkStandardNewMacro(vtkELNOFilter);
+vtkStandardNewMacro(vtkELNOFilter)
 
 vtkELNOFilter::vtkELNOFilter()
 {
@@ -52,7 +52,7 @@ int vtkELNOFilter::RequestData(vtkInformation *request, vtkInformationVector **i
   vtkUnstructuredGrid *usgIn(vtkUnstructuredGrid::SafeDownCast( input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
   vtkPolyData *pdOut(vtkPolyData::SafeDownCast(output->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT())));
 
-  vtkDataArray *array(this->GetInputArrayToProcess(0, input));
+  //vtkDataArray *array(this->GetInputArrayToProcess(0, input)); // todo: unused
   vtkIdTypeArray* offsets(vtkIdTypeArray::SafeDownCast(this->GetInputArrayToProcess(0, input)));
 
   if(usgIn == NULL || offsets == NULL || pdOut == NULL)
@@ -82,7 +82,7 @@ int vtkELNOFilter::RequestData(vtkInformation *request, vtkInformationVector **i
   vtkIdType start(0);
   for(vtkIdType cellId = 0; cellId < ncell; cellId++)
     {
-      vtkIdType offset(offsets->GetValue(cellId));
+      //vtkIdType offset(offsets->GetValue(cellId)); // todo: unused
       int cellType(usgIn->GetCellType(cellId));
       // a simple check to see if a scheme really exists for this cell type.
       // should not happen if the cell type has not been modified.
@@ -152,7 +152,7 @@ int vtkELNOFilter::RequestData(vtkInformation *request, vtkInformationVector **i
               for(vtkIdType cellId=0;cellId<nbCellsInput;cellId++)
                 {
                   vtkCell *cell(usgIn->GetCell(cellId));
-                  vtkIdType nbPoints(cell->GetNumberOfPoints()),offset(offsetPtr[cellId]);
+                  vtkIdType nbPoints(cell->GetNumberOfPoints())/*,offset(offsetPtr[cellId])*/; // todo: offset is unused
                   for(vtkIdType j=0;j<nbPoints;j++,zeId++)
                     newArray->SetTuple(zeId,offsetPtr[cellId]+j,data);
                 }