]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
#18963 Minimize compiler warnings
authorViktor UZLOV <vuzlov@debian10-01.nnov.opencascade.com>
Tue, 1 Sep 2020 09:29:02 +0000 (12:29 +0300)
committervsr <vsr@opencascade.com>
Mon, 14 Dec 2020 16:22:20 +0000 (19:22 +0300)
85 files changed:
doc/doxygen/doxyfile.in
src/Insitu/VisualizationComponent/VisualizationComponent.cxx
src/PVGUI/PVGUI_DataModel.cxx
src/PVGUI/PVGUI_DataModel.h
src/PVGUI/PVGUI_Module.cxx
src/PVGUI/PVGUI_Module_actions.cxx
src/PVGUI/PVGUI_ParaViewSettingsPane.cxx
src/PVGUI/PVGUI_ParaViewSettingsPane.h
src/Plugins/ArrayRenamer/plugin/ArrayRenamerModule/vtkArrayRenamerFilter.cxx
src/Plugins/ArrayRenamer/plugin/ArrayRenamerModule/vtkArrayRenamerFilter.h
src/Plugins/ArrayRenamer/plugin/pqArraysEditorPropertyWidget.cxx
src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.cxx
src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/VTKToMEDMem.h
src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/vtkDevelopedSurface.cxx
src/Plugins/DevelopedSurface/plugin/DevelopedSurfaceModule/vtkDevelopedSurface.h
src/Plugins/DifferenceTimesteps/plugin/DifferenceTimestepsModule/vtkDifferenceTimestepsFilter.cxx
src/Plugins/DifferenceTimesteps/plugin/DifferenceTimestepsModule/vtkDifferenceTimestepsFilter.h
src/Plugins/ElevationSurface/plugin/ElevationSurfaceModule/vtkElevationSurfaceFilter.cxx
src/Plugins/ElevationSurface/plugin/ElevationSurfaceModule/vtkElevationSurfaceFilter.h
src/Plugins/EllipseBuilder/plugin/EllipseBuilderModule/vtkEllipseBuilderFilter.cxx
src/Plugins/EllipseBuilder/plugin/EllipseBuilderModule/vtkEllipseBuilderFilter.h
src/Plugins/GaussToCell/plugin/GaussToCellModule/vtkGaussToCell.cxx
src/Plugins/GaussToCell/plugin/GaussToCellModule/vtkGaussToCell.h
src/Plugins/JSONReader/plugin/JSONParserModule/vtkJSONParser.cxx
src/Plugins/JSONReader/plugin/JSONParserModule/vtkJSONParser.h
src/Plugins/JSONReader/plugin/JSONReaderModule/vtkJSONReader.cxx
src/Plugins/JSONReader/plugin/JSONReaderModule/vtkJSONReader.h
src/Plugins/MEDReader/plugin/MEDLoaderForPV/ExtractGroupHelper.cxx
src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDFileFieldRepresentationTree.cxx
src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDTimeReq.cxx
src/Plugins/MEDReader/plugin/MEDLoaderForPV/MEDUtilities.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOFilter.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOFilter.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOMeshFilter.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOMeshFilter.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOSurfaceFilter.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkELNOSurfaceFilter.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkExtractCellType.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkExtractCellType.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkExtractGroup.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkExtractGroup.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkGroupAsMultiBlock.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkGroupAsMultiBlock.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkGroupsNames.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkGroupsNames.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkInformationGaussDoubleVectorKey.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkMEDQuadraturePointsGenerator.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkMEDQuadraturePointsGenerator.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkMEDReader.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkMEDReader.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkPVMetaDataInformation.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkPVMetaDataInformation.h
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkUgSelectCellIds.cxx
src/Plugins/MEDReader/plugin/MEDReaderIO/vtkUgSelectCellIds.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqAbstractFieldsWidget.cxx
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqAbstractFieldsWidget.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqExtractGroupFieldsWidget.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderFieldsWidget.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderTimeModeWidget.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderTimesFlagsWidget.h
src/Plugins/MEDReader/plugin/ParaViewPlugin/pqMEDReaderVectorsWidget.h
src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.cxx
src/Plugins/MEDWriter/plugin/MEDWriterIO/VTKToMEDMem.h
src/Plugins/MEDWriter/plugin/MEDWriterIO/vtkMEDWriter.cxx
src/Plugins/MEDWriter/plugin/MEDWriterIO/vtkMEDWriter.h
src/Plugins/ParaGEOMCorba/plugin/ParaGEOMCorbaModule/vtkParaGEOMCorbaSource.cxx
src/Plugins/ParaGEOMCorba/plugin/ParaGEOMCorbaModule/vtkParaGEOMCorbaSource.h
src/Plugins/ParaMEDCorba/plugin/ParaMEDCorbaModule/vtkParaMEDCorbaSource.cxx
src/Plugins/ParaMEDCorba/plugin/ParaMEDMEM2VTK/VTKMEDCouplingCurveLinearMeshClient.cxx
src/Plugins/ParaMEDCorba/plugin/ParaMEDMEM2VTK/VTKMEDCouplingMultiFieldsClient.cxx
src/Plugins/ParaMEDCorba/plugin/ParaMEDMEM2VTK/VTKMEDCouplingUMeshClient.cxx
src/Plugins/ParaSMESHCorba/plugin/ParaSMESHCorbaModule/vtkParaSMESHCorbaSource.cxx
src/Plugins/ParaSMESHCorba/plugin/ParaSMESHCorbaModule/vtkParaSMESHCorbaSource.h
src/Plugins/ScaleVector/plugin/ScaleVectorModule/vtkScaleVectorFilter.cxx
src/Plugins/ScaleVector/plugin/ScaleVectorModule/vtkScaleVectorFilter.h
src/Plugins/SimpleMode/plugin/SimpleModeModule/vtkSimpleMode.cxx
src/Plugins/SimpleMode/plugin/SimpleModeModule/vtkSimpleMode.h
src/Plugins/VoroGauss/plugin/VoroGaussModule/vtkVoroGauss.cxx
src/Plugins/VoroGauss/plugin/VoroGaussModule/vtkVoroGauss.h
test/standalone/gui/PVViewer_Behaviors.cxx
test/standalone/gui/PVViewer_Core.cxx
test/standalone/gui/PVViewer_GUIElements.cxx
test/standalone/simple/Container_init_python.cxx
test/standalone/simple/PyInterp_Utils.h
test/standalone/simple/simple_gil.cxx

index a26830ad511b2dfadece94208cb3246376be1889..3d06c684a64e72810543278671ff2ec5d158f1f0 100644 (file)
@@ -1942,7 +1942,7 @@ ENABLE_PREPROCESSING   = YES
 # The default value is: NO.
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
-MACRO_EXPANSION        = NO
+MACRO_EXPANSION        = YES
 
 # If the EXPAND_ONLY_PREDEF and MACRO_EXPANSION tags are both set to YES then
 # the macro expansion is limited to the macros specified with the PREDEFINED and
@@ -1950,7 +1950,7 @@ MACRO_EXPANSION        = NO
 # The default value is: NO.
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
-EXPAND_ONLY_PREDEF     = NO
+EXPAND_ONLY_PREDEF     = YES
 
 # If the SEARCH_INCLUDES tag is set to YES the includes files in the
 # INCLUDE_PATH will be searched if a #include is found.
@@ -1982,7 +1982,8 @@ INCLUDE_FILE_PATTERNS  =
 # recursively expanded use the := operator instead of the = operator.
 # This tag requires that the tag ENABLE_PREPROCESSING is set to YES.
 
-PREDEFINED             =
+PREDEFINED             = vtkTypeMacro()= \
+                         vtkStandardNewMacro()=
 
 # If the MACRO_EXPANSION and EXPAND_ONLY_PREDEF tags are set to YES then this
 # tag can be used to specify a list of macro names that should be expanded. The
@@ -2310,7 +2311,7 @@ PLANTUML_JAR_PATH      =
 # Minimum value: 0, maximum value: 10000, default value: 50.
 # This tag requires that the tag HAVE_DOT is set to YES.
 
-DOT_GRAPH_MAX_NODES    = 50
+DOT_GRAPH_MAX_NODES    = 100
 
 # The MAX_DOT_GRAPH_DEPTH tag can be used to set the maximum depth of the graphs
 # generated by dot. A depth value of 3 means that only nodes reachable from the
index 36bfec5c9ccfe343417c78f6d92c073f5d29574b..9b2547b105ec03aeac423de3ca4788e9c98585d5 100644 (file)
@@ -115,7 +115,7 @@ void VisualizationComponent_i::Visualize(SALOME_MED::ParaMEDCouplingFieldDoubleC
 {
   beginService("VisualizationComponent_i::Visualize");
   void *ret_th;
-  pthread_t *th;
+  pthread_t *th = 0;
   exception_st *est;
 
   try
index 2d7da3bdd13140188df4fc5b75ef7f3660aa6b6b..5814ef1ea9439aecb22c86f4f97ca5703eabba52 100644 (file)
@@ -325,7 +325,7 @@ bool PVGUI_DataModel::createAndCheckRestoreFlag(const QString& tmpdir, QStringLi
 
 /*!
   \brief Save data model (write ParaView pipeline to the files).
-  \param listOfFiles returning list of the (temporary) files with saved data
+  \param theListOfFiles returning list of the (temporary) files with saved data
   \return operation status (\c true on success and \c false on error)
 */
 bool PVGUI_DataModel::save( QStringList& theListOfFiles)
@@ -407,10 +407,10 @@ bool PVGUI_DataModel::save( QStringList& theListOfFiles)
   \brief Save data model (write ParaView pipeline state to the files).
   \param url study file path
   \param study study pointer
-  \param listOfFiles returning list of the (temporary) files with saved data
+  \param theListOfFiles returning list of the (temporary) files with saved data
   \return operation status (\c true on success and \c false on error)
 */
-bool PVGUI_DataModel::saveAs( const QString& url, CAM_Study* study, QStringList& theListOfFiles)
+bool PVGUI_DataModel::saveAs( const QString& url, CAM_Study* /*study*/, QStringList& theListOfFiles)
 {
   myStudyURL = url;
   return save( theListOfFiles );
index e16134f788f48df6ce6145dba065ab2428bc5d9f..af53f423cc638796e3b6ab2a5b77151b24d8ba08 100644 (file)
@@ -42,7 +42,7 @@ public:
   virtual bool dumpPython( const QString&,  CAM_Study*, bool, QStringList& );
   virtual bool open( const QString&, CAM_Study*, QStringList );
   virtual bool save( QStringList& );
-  virtual bool saveAs( const QString&, CAM_Study*, QStringList& );
+  virtual bool saveAs( const QString& url, CAM_Study* study, QStringList& theListOfFiles );
   virtual bool create( CAM_Study* );
 
 private:
index 3119a5cf7275c5b3bd8c534f0e38079ae0b28f22..08fc02d20472f52902e9989b5ee7d80af07ef001 100644 (file)
@@ -1000,7 +1000,7 @@ void PVGUI_Module::onViewManagerRemoved( SUIT_ViewManager* vm )
 /*!
   \brief Show toolbars at \a vw PV view window creating when PARAVIS is active.
 */
-void PVGUI_Module::onPVViewCreated( SUIT_ViewWindow* vw )
+void PVGUI_Module::onPVViewCreated( SUIT_ViewWindow* /*vw*/ )
 {
   myGuiElements->setToolBarVisible( true );
   restoreDockWidgetsState();
index e126f5a5b0743f6d17b9f04a5c71ffdc64b5d409..a1130e43c7d1776842e7ec1d527afe098aefe477 100644 (file)
@@ -409,7 +409,7 @@ void PVGUI_Module::pvCreateMenus()
   // Recent Files
    myRecentMenuId = createMenu( tr( "MEN_RECENT_FILES" ), aPVMnu, -1, 5 );
    QMenu* aMenu = menuMgr()->findMenu( myRecentMenuId );
-   pqRecentFilesMenu* aRecentFilesMenu = new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
+   /*pqRecentFilesMenu* aRecentFilesMenu = */new pqRecentFilesMenu( *aMenu, getApp()->desktop() );
    QList<QAction*> anActns = aMenu->actions();
    for (int i = 0; i < anActns.size(); ++i)
      createMenu( anActns.at(i), myRecentMenuId );
index 07cb3a112be315b7649f35360671e0e39477d822..058e9edea23ec5768c44e439c60ce2de13395e50 100644 (file)
@@ -217,7 +217,7 @@ void PVGUI_ParaViewSettingsPane::hideEvent(QHideEvent * ev)
 }
 
 //-----------------------------------------------------------------------------
-void PVGUI_ParaViewSettingsPane::clicked(QAbstractButton *button)
+void PVGUI_ParaViewSettingsPane::clicked(QAbstractButton * /*button*/)
 {
 //  Ui::CustomSettingsWidget &ui = this->Internals->Ui;
 //  QDialogButtonBox::ButtonRole role = ui.buttonBox->buttonRole(button);
index 6eb69ea3e85b8aa8914ce5372bbd41eaed13729e..b62de71e3342c8c574b72857d3c2effdceaa975d 100644 (file)
@@ -36,7 +36,7 @@ class LightApp_Application;
 
 /**!
  * This class is (almost) a copy/paste of what is found in
- *    *<PARAVIEW>/Qt/Components/pqSettingsDialog.h*
+ *    *[PARAVIEW]/Qt/Components/pqSettingsDialog.h*
  * This is (almost) the same, except for the inheritance to QtxUserDefinedContent providing the link
  * to SALOME preference mechanism.
  * The UI content of pqSettingsDialog is put in a (PARAVIS) widget called pqCustomSettingsWidget.
@@ -80,7 +80,7 @@ protected:
     void saveInQSettings(const char* key, vtkSMProperty* smproperty);
 
   private:
-    Q_DISABLE_COPY(PVGUI_ParaViewSettingsPane);
+    Q_DISABLE_COPY(PVGUI_ParaViewSettingsPane)
     class pqInternals;
     pqInternals* Internals;
 
index a855baf6a6b3696cc7af454273617dab6ce82910..24f07848dee6a7ce9bb6e28fc977c3421bac7329 100644 (file)
@@ -64,7 +64,7 @@ public:
 };
 
 //------------------------------------------------------------------------------
-vtkStandardNewMacro(vtkArrayRenamerFilter);
+vtkStandardNewMacro(vtkArrayRenamerFilter)
 
 //--------------------------------------------------------------------------------------------------
 vtkArrayRenamerFilter::vtkArrayRenamerFilter()
@@ -85,8 +85,8 @@ int vtkArrayRenamerFilter::RequestData(vtkInformation* theRequest,
   // std::cout<<"vtkArrayRenamerFilter::RequestData  !!! "<<std::endl;
 
   // Get the information
-  vtkInformation* anInputInfo = theInputVector[0]->GetInformationObject(0);
-  vtkInformation* anOutputInfo = theOutputVector->GetInformationObject(0);
+  //vtkInformation* anInputInfo = theInputVector[0]->GetInformationObject(0); // todo: unused
+  //vtkInformation* anOutputInfo = theOutputVector->GetInformationObject(0); // todo: unused
 
   vtkDataSet* anInput = vtkDataSet::GetData(theInputVector[0], 0);
   vtkDataSet* anOutput = vtkDataSet::GetData(theOutputVector, 0);
index 7b58eefbd49d60f2f22d62fb985194beaa8cb3fe..291e8bfa449e9ce428e540ebbbaed3d6d505ce4b 100644 (file)
@@ -33,7 +33,7 @@ public:
   /// Returns pointer on a new instance of the class
   static vtkArrayRenamerFilter* New();
 
-  vtkTypeMacro(vtkArrayRenamerFilter, vtkDataSetAlgorithm);
+  vtkTypeMacro(vtkArrayRenamerFilter, vtkDataSetAlgorithm)
 
   void SetArrayInfo(const char* originarrayname, const char* newarrayname, bool copy);
   void ClearArrayInfo();
index beddbc9106b433f72ef52f4b97ba57fc3f677af6..057d93a45d5ca8278ac0cd1eb470226f0e89f8d2 100644 (file)
@@ -168,6 +168,7 @@ public:
         {
           if (myComponentsInfoVector[idx.row()].second == myComponentsInfoVector[idx.row()].first)
             return QApplication::palette().color(QPalette::Disabled, QPalette::Text);
+          break;
         }
         case Qt::FontRole:
         {
@@ -247,7 +248,7 @@ public:
   const ComponentsInfoType& componentsInfo() const { return myComponentsInfoVector; }
 
 private:
-  Q_DISABLE_COPY(pqComponentsModel);
+  Q_DISABLE_COPY(pqComponentsModel)
 };
 
 /// Table model for the array's table
@@ -265,10 +266,10 @@ public:
 
   public:
     //------------------------------------------------------------------
-    const int nbComps() const { return myComponentsInfo.size(); }
+    int nbComps() const { return myComponentsInfo.size(); }
 
     //------------------------------------------------------------------
-    const bool isCompomentsModified() const
+    bool isCompomentsModified() const
     {
       foreach (pqComponentsModel::SingleComponentInfoType item, myComponentsInfo)
       {
@@ -376,6 +377,7 @@ public:
         {
           if (myArraysInfo[idx.row()].second.newName == myArraysInfo[idx.row()].first)
             return QApplication::palette().color(QPalette::Disabled, QPalette::Text);
+          break;
         }
         case Qt::FontRole:
         {
@@ -480,11 +482,11 @@ public:
   ArraysInfoType& editArraysInfo() { return myArraysInfo; }
 
 private:
-  Q_DISABLE_COPY(pqArraysModel);
+  Q_DISABLE_COPY(pqArraysModel)
 };
 
 //-----------------------------------------------------------------------------
-pqEditComponents::pqEditComponents(pqComponentsModel* model, QWidget* parent)
+pqEditComponents::pqEditComponents(pqComponentsModel* model, QWidget* /*parent*/)
 {
 
   myComponentsModel = model;
@@ -673,7 +675,7 @@ QList<QVariant> pqArraysEditorPropertyWidget::componentsInfo() const
 
 //-----------------------------------------------------------------------------
 void pqArraysEditorPropertyWidget::onDataChanged(
-  const QModelIndex& topleft, const QModelIndex& btmright)
+  const QModelIndex& topleft, const QModelIndex& /*btmright*/)
 {
   if (topleft.column() == pqArraysModel::PROCESSING || topleft.column() == pqArraysModel::NEW_NAME)
   {
index 9c424df59054771952509b147fcd3c5145ae8d93..847b3436e24feb9aa0fb27e715f0568b9f25c7ba 100644 (file)
@@ -264,7 +264,7 @@ MEDCouplingUMesh *BuildMeshFromCellArray(vtkCellArray *ca, DataArrayDouble *coor
   int nbCells(ca->GetNumberOfCells());
   if(nbCells==0)
     return 0;
-  vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+  //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
   const vtkIdType *conn(ca->GetData()->GetPointer(0));
   for(int i=0;i<nbCells;i++)
     {
@@ -285,7 +285,7 @@ MEDCouplingUMesh *BuildMeshFromCellArrayTriangleStrip(vtkCellArray *ca, DataArra
   int nbCells(ca->GetNumberOfCells());
   if(nbCells==0)
     return 0;
-  vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+  //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
   const vtkIdType *conn(ca->GetData()->GetPointer(0));
   ids=DataArrayIdType::New() ; ids->alloc(0,1);
   for(int i=0;i<nbCells;i++)
@@ -457,7 +457,7 @@ void PutAtLevelDealOrder(MEDFileData *mfd, int meshDimRel, const MicroField& mf,
   MCAuto<MEDCouplingUMesh> mesh(mf.getMesh());
   mesh->setName(mfd->getMeshes()->getMeshAtPos(0)->getName());
   MCAuto<DataArrayIdType> o2n(mesh->sortCellsInMEDFileFrmt());
-  const DataArrayIdType *o2nPtr(o2n);
+  //const DataArrayIdType *o2nPtr(o2n); // todo: unused
   MCAuto<DataArrayIdType> n2o;
   mmu->setMeshAtLevel(meshDimRel,mesh);
   const DataArrayIdType *n2oPtr(0);
@@ -570,8 +570,8 @@ std::vector<MCAuto<DataArray> > AddPartFields(const DataArrayIdType *part, vtkDa
       if(!arr)
         continue;
       const char *name(arr->GetName());
-      int nbCompo(arr->GetNumberOfComponents());
-      vtkIdType nbTuples(arr->GetNumberOfTuples());
+      //int nbCompo(arr->GetNumberOfComponents());
+      //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
       MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
       if(part)
         mcarr=mcarr->selectByTupleId(part->begin(),part->end());
@@ -593,8 +593,8 @@ std::vector<MCAuto<DataArray> > AddPartFields2(int bg, int end, vtkDataSetAttrib
       if(!arr)
         continue;
       const char *name(arr->GetName());
-      int nbCompo(arr->GetNumberOfComponents());
-      vtkIdType nbTuples(arr->GetNumberOfTuples());
+      //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+      //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
       MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
       mcarr=mcarr->selectByTupleIdSafeSlice(bg,end,1);
       mcarr->setName(name);
@@ -744,13 +744,13 @@ void ConvertFromUnstructuredGrid(MEDFileData *ret, vtkUnstructuredGrid *ds, cons
   vtkCellArray *ca(ds->GetCells());
   if(!ca)
     return ;
-  vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
-  vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+  //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+  //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
   vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
   if(!ct)
     throw MZCException("ConvertFromUnstructuredGrid : internal error");
   vtkIdTypeArray *cla(ds->GetCellLocationsArray());
-  const vtkIdType *claPtr(cla->GetPointer(0));
+  //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
   if(!cla)
     throw MZCException("ConvertFromUnstructuredGrid : internal error 2");
   const unsigned char *ctPtr(ct->GetPointer(0));
@@ -779,10 +779,9 @@ void ConvertFromUnstructuredGrid(MEDFileData *ret, vtkUnstructuredGrid *ds, cons
             }
         }
     }
-  int dummy(0);
   MCAuto<DataArrayInt> levs(lev->getDifferentValues());
   std::vector< MicroField > ms;
-  vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+  //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
   for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
     {
       MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
index 8256941dce8b77eeb2516643a67124cfb6001ec4..199372809f2cd44641a4d84d0de5ae5190d94d12 100644 (file)
@@ -44,8 +44,8 @@ class VTK_EXPORT MZCException : public std::exception
 {
 public:
   MZCException(const std::string& s):_reason(s) { }
-  virtual const char *what() const throw() { return _reason.c_str(); }
-  virtual ~MZCException() throw() { }
+  virtual const char *what() const noexcept { return _reason.c_str(); }
+  virtual ~MZCException() noexcept { }
 private:
   std::string _reason;
 };
index ea305df0b13c3c826a7fe0d05608e65d9767c1f6..d68137f3c02cae60f905fe6593b45e3eb2cefab7 100644 (file)
@@ -73,7 +73,7 @@
 #include <sstream>
 #include <algorithm>
 
-vtkStandardNewMacro(vtkDevelopedSurface);
+vtkStandardNewMacro(vtkDevelopedSurface)
 
 ///////////////////
 
@@ -156,7 +156,7 @@ void vtkDevelopedSurface::SetThetaOffset(double offsetInDegrees)
   this->Modified();
 }
 
-int vtkDevelopedSurface::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkDevelopedSurface::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
 { 
   //std::cerr << "########################################## vtkDevelopedSurface::RequestInformation ##########################################" << std::endl;
   try
@@ -212,7 +212,7 @@ std::vector<mcIdType> UnWrapByDuplicatingNodes(vtkCellArray *ca, vtkIdType& offs
 }
 
 template<class T>
-void DealArray(vtkDataSetAttributes *pd, int pos, typename MEDFileVTKTraits<T>::VtkType *arr, std::vector<int>& nodeSel)
+void DealArray(vtkDataSetAttributes * /*pd*/, int /*pos*/, typename MEDFileVTKTraits<T>::VtkType *arr, std::vector<int>& nodeSel)
 {
   int nbc(arr->GetNumberOfComponents());
   std::size_t nbt(nodeSel.size());
@@ -431,7 +431,7 @@ void dealWith(vtkPolyData *outdata, const double center[3], const double axis[3]
     }
 }
 
-int vtkDevelopedSurface::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkDevelopedSurface::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   //std::cerr << "########################################## vtkDevelopedSurface::RequestData        ##########################################" << std::endl;
   try
index 1491c60f634d9f0d35cf59e11e8790c605ca3d5a..05c781071810fedb0c4dd1dd73e5452684c9d78f 100644 (file)
@@ -31,7 +31,7 @@ class vtkDevelopedSurface : public vtkDataSetAlgorithm
 {
 public:
   static vtkDevelopedSurface* New();
-  vtkTypeMacro(vtkDevelopedSurface, vtkDataSetAlgorithm);
+  vtkTypeMacro(vtkDevelopedSurface, vtkDataSetAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   void SetCutFunction(vtkImplicitFunction* func);
index 99866cbf6cd53e545df8ea26f443387ab8e3ea4f..4523f6a2be4a4b0a59d6816eedeb176e2aff0853 100644 (file)
@@ -53,7 +53,7 @@ vtkDataArray* DataTempDiffArray(
 
 // Templated difference function
 template <class T>
-void vtkTemporalDataDifference(vtkDifferenceTimestepsFilter* theDTF, vtkDataArray* theOutput,
+void vtkTemporalDataDifference(vtkDifferenceTimestepsFilter* /*theDTF*/, vtkDataArray* theOutput,
   vtkDataArray** theArrays, vtkIdType theNumComp, T*)
 {
   T* anOutputData = static_cast<T*>(theOutput->GetVoidPointer(0));
@@ -79,7 +79,7 @@ void vtkTemporalDataDifference(vtkDifferenceTimestepsFilter* theDTF, vtkDataArra
   theOutput->SetNumberOfTuples(N);
 }
 
-vtkStandardNewMacro(vtkDifferenceTimestepsFilter);
+vtkStandardNewMacro(vtkDifferenceTimestepsFilter)
 
 //--------------------------------------------------------------------------------------------------
 vtkDifferenceTimestepsFilter::vtkDifferenceTimestepsFilter()
@@ -171,11 +171,11 @@ int vtkDifferenceTimestepsFilter::RequestDataObject(vtkInformation* vtkNotUsed(t
 
 //--------------------------------------------------------------------------------------------------
 int vtkDifferenceTimestepsFilter::RequestInformation(vtkInformation* vtkNotUsed(theRequest),
-  vtkInformationVector** theInputVector, vtkInformationVector* theOutputVector)
+  vtkInformationVector** theInputVector, vtkInformationVector* /*theOutputVector*/)
 {
   // Get input and output information objects
   vtkInformation* anInInfo = theInputVector[0]->GetInformationObject(0);
-  vtkInformation* anOutInfo = theOutputVector->GetInformationObject(0);
+  //vtkInformation* anOutInfo = theOutputVector->GetInformationObject(0); // todo: unused
 
   // Check for presence more than one time step
   if (anInInfo->Has(vtkStreamingDemandDrivenPipeline::TIME_STEPS()))
@@ -227,7 +227,7 @@ int vtkDifferenceTimestepsFilter::RequestInformation(vtkInformation* vtkNotUsed(
 }
 
 //--------------------------------------------------------------------------------------------------
-int vtkDifferenceTimestepsFilter::RequestUpdateExtent(vtkInformation* theRequest,
+int vtkDifferenceTimestepsFilter::RequestUpdateExtent(vtkInformation* /*theRequest*/,
   vtkInformationVector** theInputVector, vtkInformationVector* theOutputVector)
 {
   // Get the information objects
index 52c2de17659bc33772b3ee218a754e125cd0ee16..53de6e9878c9c46cbe7e0bfa32519e34ae360149 100644 (file)
@@ -38,7 +38,7 @@ public:
   /// Returns pointer on a new instance of the class
   static vtkDifferenceTimestepsFilter* New();
 
-  vtkTypeMacro(vtkDifferenceTimestepsFilter, vtkMultiTimeStepAlgorithm);
+  vtkTypeMacro(vtkDifferenceTimestepsFilter, vtkMultiTimeStepAlgorithm)
 
   /// Prints current state of the objects
   void PrintSelf(ostream&, vtkIndent) override;
index 7e340cb33fd01267f4836065c8185bcb1d35ca30..056c63bbacef4ba57b8c954e299d85aa39243ae0 100644 (file)
@@ -38,7 +38,7 @@
 #include <math.h>
 
 //vtkCxxRevisionMacro(vtkElevationSurfaceFilter, "$Revision$");
-vtkStandardNewMacro(vtkElevationSurfaceFilter);
+vtkStandardNewMacro(vtkElevationSurfaceFilter)
 
 vtkElevationSurfaceFilter::vtkElevationSurfaceFilter()
 {
@@ -117,13 +117,13 @@ int vtkElevationSurfaceFilter::RequestUpdateExtent(
   return 1;
 }
 
-int vtkElevationSurfaceFilter::RequestInformation(vtkInformation *request,
-    vtkInformationVector **input, vtkInformationVector *output)
+int vtkElevationSurfaceFilter::RequestInformation(vtkInformation * /*request*/,
+         vtkInformationVector ** /*input*/, vtkInformationVector * /*output*/)
 {
   return 1;
 }
 
-int vtkElevationSurfaceFilter::RequestData(vtkInformation *request,
+int vtkElevationSurfaceFilter::RequestData(vtkInformation * /*request*/,
     vtkInformationVector **input, vtkInformationVector *output)
 {
   vtkPolyData *pdIn = vtkPolyData::SafeDownCast(
index 3ca1f2e1cfef499333d774e9a82dc7307aec4f3f..2366ad9d81feedc92f3a562f83ebb1a0d8dbd26a 100644 (file)
@@ -28,7 +28,7 @@ class VTK_EXPORT vtkElevationSurfaceFilter : public vtkAlgorithm
 {
 public:
   static vtkElevationSurfaceFilter* New();
-  vtkTypeMacro(vtkElevationSurfaceFilter, vtkAlgorithm);
+  vtkTypeMacro(vtkElevationSurfaceFilter, vtkAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   // Description :
index 610cca94b9a4661a83a9a358b0548e1c404c1db8..3f28a0cd4c0fddda285b96d49ef9f7fe18f64071 100644 (file)
@@ -107,7 +107,7 @@ list<std::string> GetListOfFields(vtkDataObject* theObject)
 }
 
 //------------------------------------------------------------------------------
-vtkStandardNewMacro(vtkEllipseBuilderFilter);
+vtkStandardNewMacro(vtkEllipseBuilderFilter)
 
 //------------------------------------------------------------------------------
 vtkEllipseBuilderFilter::vtkEllipseBuilderFilter() : vtkMultiBlockDataSetAlgorithm()
index b28655f5704d6ac6a6588afc37a07086b1eef889..5358c50726155e483ac3ae97daf6f8b36afb9e1e 100644 (file)
@@ -34,7 +34,7 @@ public:
   /// Returns pointer on a new instance of the class
   static vtkEllipseBuilderFilter* New();
 
-  vtkTypeMacro(vtkEllipseBuilderFilter, vtkMultiBlockDataSetAlgorithm);
+  vtkTypeMacro(vtkEllipseBuilderFilter, vtkMultiBlockDataSetAlgorithm)
 
   /// Prints current state of the objects
   void PrintSelf(ostream& os, vtkIndent indent) override;
index 7961b8ca81fa4125469451df4ef2d759d5dfff46..dd4e891b7db16b4cd92a12aaaa9d755b17463a5a 100644 (file)
@@ -86,7 +86,7 @@ using MEDCoupling::MEDCouplingFieldDouble;
 using MEDCoupling::ON_GAUSS_PT;
 using MEDCoupling::MCAuto;
 
-vtkStandardNewMacro(vtkGaussToCell);
+vtkStandardNewMacro(vtkGaussToCell)
 
 vtkInformationDoubleVectorKey *GetMEDReaderMetaDataIfAny()
 {
@@ -180,7 +180,7 @@ void vtkGaussToCell::SetMinFlag(bool minStatus)
     }
 }
 
-int vtkGaussToCell::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGaussToCell::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
 { 
   //std::cerr << "########################################## vtkGaussToCell::RequestInformation ##########################################" << std::endl;
   try
@@ -262,7 +262,7 @@ void DealWith(const char *postName, vtkDoubleArray *zearray, vtkIdTypeArray *off
   dc(inData,offData,nbgPerCell,zeNbCompo,outNbCells,outData);
 }
 
-int vtkGaussToCell::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGaussToCell::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   //std::cerr << "########################################## vtkGaussToCell::RequestData        ##########################################" << std::endl;
   try
index 1d6cc23e3315d43fb388241f6b7a5589df6dd36a..1d941a7b46d479df6bff5a0823e2d06e0967676f 100644 (file)
@@ -29,7 +29,7 @@ class VTK_EXPORT vtkGaussToCell : public vtkUnstructuredGridAlgorithm
 {
 public:
   static vtkGaussToCell* New();
-  vtkTypeMacro(vtkGaussToCell, vtkUnstructuredGridAlgorithm);
+  vtkTypeMacro(vtkGaussToCell, vtkUnstructuredGridAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   void SetAvgFlag(bool avgStatus);
index 2ed434e11597bf1e1aef3a7766b725524a90711b..937599bc87ff362b95ed4ea169b45b663fab9cb0 100644 (file)
@@ -93,12 +93,12 @@ vtkJSONException::vtkJSONException(const char* reason)
 }
 
 //---------------------------------------------------
-vtkJSONException::~vtkJSONException() throw()
+vtkJSONException::~vtkJSONException() noexcept
 {
 }
 
 //---------------------------------------------------
-const char* vtkJSONException::what() const throw()
+const char* vtkJSONException::what() const noexcept
 {
   return Reason.c_str();
 }
index 6f05d843a1cb05336cb59bba35f31ec8a80d9c9d..4006c3aa52a40f4095f580ff4584baddf598857c 100644 (file)
@@ -37,8 +37,8 @@ class VTK_EXPORT vtkJSONException : public std::exception
 {
 public:
   vtkJSONException(const char* reason);
-  ~vtkJSONException() throw();
-  const char* what() const throw();
+  ~vtkJSONException() noexcept;
+  const char* what() const noexcept;
 
 protected:
   std::string Reason;
index bcc3b862b4bdc7319ae53e1da2e83dae25af5449..ff72f761f8bf6a0468622ffebae779a8fa085974 100644 (file)
@@ -54,11 +54,11 @@ vtkJSONException::vtkJSONException(const char *reason) : Reason(reason) {
 }
 
 //---------------------------------------------------
-vtkJSONException::~vtkJSONException() throw () {
+vtkJSONException::~vtkJSONException() noexcept {
 }
 
 //---------------------------------------------------
-const char* vtkJSONException::what() const throw() {
+const char* vtkJSONException::what() const noexcept {
   return Reason.c_str();
 }
 
@@ -69,7 +69,7 @@ public:
   typedef std::vector<std::pair<std::string,std::vector<double> > > DataType;
   Container(){}
   void initKeys(std::vector<std::string> &keys, std::string &err) {
-    for(int i = 0; i < keys.size(); i++) {
+    for(int i = 0; i < (int)keys.size(); i++) {
       if( !checkVar(keys[i].c_str()) ) {
        std::ostringstream oss;
        oss<<"Bad key value '"<<keys[i].c_str()<<"'";
@@ -88,7 +88,7 @@ public:
       return;
     }
     bool found = false;
-    for(int i = 0; i < _data.size(); i++) {
+    for(int i = 0; i < (int)_data.size(); i++) {
       if(_data[i].first == key) {
        _data[i].second.push_back(value);
        found = true;
@@ -114,7 +114,7 @@ private:
   DataType _data;
 };
 
-vtkStandardNewMacro(vtkJSONReader);
+vtkStandardNewMacro(vtkJSONReader)
 
 //---------------------------------------------------
 vtkJSONReader::vtkJSONReader() {
@@ -159,7 +159,7 @@ int vtkJSONReader::RequestData(vtkInformation*,
     this->Parse(root, output_table);
     return 1;
   } 
-  catch(vtkJSONException e)  {
+  catch(vtkJSONException& e)  {
     std::ostringstream oss;
     oss<<e.what();
     if(this->HasObserver("ErrorEvent") )
@@ -251,10 +251,10 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
       jSONListOfNames = jSONMetaData.get(SHT, Json::Value::null);
       std::ostringstream oss;
       oss<< "Short Names : [ ";
-      for (int i = 0; i < jSONListOfNames.size(); i++) {
+      for (int i = 0; i < (int)jSONListOfNames.size(); i++) {
         oss << "'" << jSONListOfNames[i].asString() << "'";
        short_names.push_back(jSONListOfNames[i].asString());
-        if ( i != jSONListOfNames.size() - 1 ) {
+        if ( i != (int)jSONListOfNames.size() - 1 ) {
           oss << ", ";
         }
       }
@@ -267,9 +267,9 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
       jSONListOfLongName = jSONMetaData.get(LNG, Json::Value::null);
       std::ostringstream oss;
       oss << "Long Names : [ ";
-      for (int i = 0; i < jSONListOfLongName.size(); ++i) {
+      for (int i = 0; i < (int)jSONListOfLongName.size(); ++i) {
         oss << "'" << jSONListOfLongName[i].asString() << "'";
-        if ( i != jSONListOfLongName.size()-1 ) {
+        if ( i != (int)jSONListOfLongName.size()-1 ) {
           oss << ", ";
         }
       }
@@ -281,9 +281,9 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
       hasUnits = true;
       std::ostringstream oss;
       oss << "Units : [ ";
-      for (int i = 0; i < jSONListOfUnits.size(); ++i) {
+      for (int i = 0; i < (int)jSONListOfUnits.size(); ++i) {
         oss << "'" << jSONListOfUnits[i].asString() << "'";
-        if ( i != jSONListOfUnits.size()-1 ) {
+        if ( i != (int)jSONListOfUnits.size()-1 ) {
           oss << ", ";
         }
       }
@@ -333,7 +333,7 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
       }
       initContainer = true;
     }
-    for(int i=0; i < members.size(); i++) { 
+    for(int i=0; i < (int)members.size(); i++) { 
       Json::Value val = (*it).get(members[i],Json::Value::null);
       double value = 0.0;
       switch (val.type()) {    
@@ -374,7 +374,7 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
   if(data.size() > 0)
     nbRows = data[0].second.size();
 
-  for(int i = 0; i < data.size(); i++) {
+  for(int i = 0; i < (int)data.size(); i++) {
     vtkDoubleArray* newCol = vtkDoubleArray::New();
     newCol->SetNumberOfValues(nbRows);
     std::string name = data[i].first;
@@ -386,7 +386,7 @@ void vtkJSONReader::Parse(Json::Value& root, vtkTable *table) {
     }
     name += "]";
     newCol->SetName(name.c_str());
-    for(int j = 0; j < data[i].second.size(); j++) {
+    for(int j = 0; j < (int)data[i].second.size(); j++) {
       newCol->SetValue(j, data[i].second[j]);
     }
     table->AddColumn(newCol);
index 817b04cfc0fe593490c8db1f59ea9d5962a3251f..8afd2f1ff379dafc301f1f36d286226e3db10e48 100644 (file)
@@ -29,8 +29,8 @@ class VTK_EXPORT vtkJSONException : public std::exception
 {
 public:
   vtkJSONException(const char* reason);
-  ~vtkJSONException() throw();
-  const char* what() const throw();
+  ~vtkJSONException() noexcept;
+  const char* what() const noexcept;
 
 protected:
   std::string Reason;
@@ -42,7 +42,7 @@ class VTK_EXPORT vtkJSONReader : public vtkTableAlgorithm
 {
 public:
   static vtkJSONReader* New();
-  vtkTypeMacro(vtkJSONReader, vtkTableAlgorithm);
+  vtkTypeMacro(vtkJSONReader, vtkTableAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   // Specifies the name of the file
index 562a5c1114e5c4882443781b321bc63ee8aed157..1e556210043844700ff2a72b64fed9f8da384106 100644 (file)
@@ -147,7 +147,6 @@ void ExtractGroupInternal::loadFrom(vtkMutableDirectedGraph *sil)
     throw INTERP_KERNEL::Exception("There is an internal error ! The tree on server side has not the expected look !");
   vtkAdjacentVertexIterator *it0(vtkAdjacentVertexIterator::New());
   sil->GetAdjacentVertices(id0,it0);
-  int kk(0),ll(0);
   while(it0->HasNext())
     {
       vtkIdType id1(it0->Next());
index a8396b31292d35b43680329a20f0477e0d08bad3..61edea6cb5270e07fafb308034a2e2a8e995ce07 100644 (file)
@@ -444,7 +444,7 @@ bool MEDFileFieldRepresentationLeavesArrays::setStatus(bool status) const
 
 void MEDFileFieldRepresentationLeavesArrays::appendFields(const MEDTimeReq *tr, const MEDCoupling::MEDFileFieldGlobsReal *globs, const MEDCoupling::MEDMeshMultiLev *mml, const MEDCoupling::MEDFileMeshStruct *mst, vtkDataSet *ds, ExportedTinyInfo *internalInfo) const
 {
-  const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE;
+  //const int VTK_DATA_ARRAY_DELETE=vtkDataArrayTemplate<double>::VTK_DATA_ARRAY_DELETE; // todo: unused
   tr->setNumberOfTS((operator->())->getNumberOfTS());
   tr->initIterator();
   for(int timeStepId=0;timeStepId<tr->size();timeStepId++,++(*tr))
@@ -580,6 +580,11 @@ void MEDFileFieldRepresentationLeaves::computeFullNameInLeaves(const std::string
 
 /*!
  * \param [in] ms is the meshes pointer. It can be used only for information of geometric types. No special processing will be requested on ms.
+ * \param [in] meshName
+ * \param [in] sil
+ * \param [in] root
+ * \param [in] edge
+ * \param [out] names
  */
 void MEDFileFieldRepresentationLeaves::feedSIL(const MEDCoupling::MEDFileMeshes *ms, const std::string& meshName, vtkMutableDirectedGraph* sil, vtkIdType root, vtkVariantArray *edge, std::vector<std::string>& names) const
 {
@@ -1194,7 +1199,6 @@ void MEDFileFieldRepresentationTree::loadInMemory(MEDCoupling::MEDFileFields *fi
       fields_per_mesh[i]=_fields->partOfThisLyingOnSpecifiedMeshName(meshNames[i].c_str());
     }
   std::vector< MCAuto<MEDFileAnyTypeFieldMultiTS > > allFMTSLeavesToDisplaySafe;
-  std::size_t k(0);
   for(std::vector< MCAuto<MEDFileFields> >::const_iterator fields=fields_per_mesh.begin();fields!=fields_per_mesh.end();fields++)
     {
       for(int j=0;j<(*fields)->getNumberOfFields();j++)
@@ -1401,9 +1405,9 @@ vtkDataSet *MEDFileFieldRepresentationTree::buildVTKInstance(bool isStdOrMode, d
   if(ts.size()!=1)
     {
       std::vector<double> ts2(ts.size());
-      std::transform(ts.begin(),ts.end(),ts2.begin(),std::bind2nd(std::plus<double>(),-timeReq));
-      std::transform(ts2.begin(),ts2.end(),ts2.begin(),std::ptr_fun<double,double>(fabs));
-      zeTimeId=std::distance(ts2.begin(),std::find_if(ts2.begin(),ts2.end(),std::bind2nd(std::less<double>(),1e-14)));
+      std::transform(ts.begin(),ts.end(),ts2.begin(),std::bind(std::plus<double>(),std::placeholders::_1,-timeReq));
+      std::transform(ts2.begin(),ts2.end(),ts2.begin(),[](double c) {return fabs(c);});
+      zeTimeId=std::distance(ts2.begin(),std::find_if(ts2.begin(),ts2.end(),std::bind(std::less<double>(),std::placeholders::_1,1e-14)));
     }
   //2nd chance
   if(zeTimeId==ts.size())
index 3d03b13aabac05c8ceea5e8abe15317c06b6b1ca..abdbda975cc86a0139a00a674c66170bd44c5bec 100644 (file)
@@ -39,7 +39,7 @@ MEDStdTimeReq::MEDStdTimeReq(int timeReq):_time_req(timeReq)
 /*!
  * Does nothing ! It is not a bug
  */
-void MEDStdTimeReq::setNumberOfTS(int nbOfTS) const
+void MEDStdTimeReq::setNumberOfTS(int /*nbOfTS*/) const
 {
 }
 
index bcd0c04482aa46a08afadfe769df251b1786196e..efbbe9a75b8be7bc0e350dc1790619323d043dda 100644 (file)
@@ -25,8 +25,8 @@
 
 #include <algorithm>
 
-vtkInformationKeyMacro(MEDUtilities,ELGA,Integer);
-vtkInformationKeyMacro(MEDUtilities,ELNO,Integer);
+vtkInformationKeyMacro(MEDUtilities,ELGA,Integer)
+vtkInformationKeyMacro(MEDUtilities,ELNO,Integer)
 
 void ExportedTinyInfo::pushGaussAdditionnalInfo(int ct, int dim, const std::vector<double>& refCoo, const std::vector<double>& posInRefCoo)
 {
index c1de8c06425a53b67c3977430083ac4c0f978542..29e6251c82e5ad4981f48a107df55ca9a74b4e10 100644 (file)
@@ -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);
                 }
index 9ff053a6b0d9d569191ac5589f92994f27077173..74b46f3a8dc48c52c70bf5293a355d56c61f8680 100644 (file)
@@ -26,7 +26,7 @@ class VTK_EXPORT vtkELNOFilter: public vtkQuadraturePointsGenerator
 {
 public:
   static vtkELNOFilter *New();
-  vtkTypeMacro(vtkELNOFilter,vtkQuadraturePointsGenerator);
+  vtkTypeMacro(vtkELNOFilter,vtkQuadraturePointsGenerator)
   void PrintSelf(ostream& os, vtkIndent indent);
 
   // Description :
index 64258061c48d2ffb71526dfca6dd6ee61d6f9da3..32d05ff9ed1861ad7e64ae7b6354e08d9d83093f 100644 (file)
@@ -39,7 +39,7 @@
 
 #include <map>
 
-vtkStandardNewMacro(vtkELNOMeshFilter);
+vtkStandardNewMacro(vtkELNOMeshFilter)
 
 vtkELNOMeshFilter::vtkELNOMeshFilter():ShrinkFactor(0.9999)
 {
@@ -49,7 +49,7 @@ vtkELNOMeshFilter::~vtkELNOMeshFilter()
 {
 }
 
-int vtkELNOMeshFilter::RequestData(vtkInformation *request,
+int vtkELNOMeshFilter::RequestData(vtkInformation * /*request*/,
     vtkInformationVector **input, vtkInformationVector *output)
 {
   vtkUnstructuredGrid *usgIn = vtkUnstructuredGrid::SafeDownCast(
@@ -80,7 +80,7 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request,
 
   // now copy ELNO data. Start by verifying if it is possible to
   // shallow copy the array.
-  vtkInformation *info(usgIn->GetInformation());
+  //vtkInformation *info(usgIn->GetInformation()); // todo: unused
   //
   vtkIdType nVerts(shrinked->GetNumberOfPoints()),ncell(usgIn->GetNumberOfCells());
   // first loop through all cells to check if a shallow copy is possible
@@ -190,7 +190,7 @@ int vtkELNOMeshFilter::RequestData(vtkInformation *request,
               for(vtkIdType cellId=0;cellId<ncell;cellId++)
                 {
                   vtkCell *cell(shrinked->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);
                 }
index 20881ebb68bf2b9fd0c9d857c4532586602c1721..d8aa97c4dcaab5607717b5319ccfa7a3d473a738 100644 (file)
@@ -26,7 +26,7 @@ class VTK_EXPORT vtkELNOMeshFilter: public vtkUnstructuredGridAlgorithm
 {
 public:
   static vtkELNOMeshFilter *New();
-  vtkTypeMacro(vtkELNOMeshFilter,vtkUnstructuredGridAlgorithm);
+  vtkTypeMacro(vtkELNOMeshFilter,vtkUnstructuredGridAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent);
 
   vtkGetMacro(ShrinkFactor, double);
index d29f1aa232736e80309293baf16ffc8fb49b4dd8..a1c2b9e5e5f0fe22092b7fe792f48ec59c12bb1e 100644 (file)
@@ -37,7 +37,6 @@
 //vtkCxxRevisionMacro(vtkELNOSurfaceFilter, "$Revision$")
 //;
 vtkStandardNewMacro(vtkELNOSurfaceFilter)
-;
 
 vtkELNOSurfaceFilter::vtkELNOSurfaceFilter()
 {
@@ -47,7 +46,7 @@ vtkELNOSurfaceFilter::~vtkELNOSurfaceFilter()
 {
 }
 
-int vtkELNOSurfaceFilter::RequestData(vtkInformation *request, vtkInformationVector **input, vtkInformationVector *output)
+int vtkELNOSurfaceFilter::RequestData(vtkInformation * /*request*/, vtkInformationVector **input, vtkInformationVector *output)
 {
   vtkUnstructuredGrid *usgIn=vtkUnstructuredGrid::SafeDownCast(
       input[0]->GetInformationObject(0)->Get(vtkDataObject::DATA_OBJECT()));
index 96ad912737614404eeb329adefbdcfb9ba8ce48e..319343077fcd38c7437f859bd543df9ed1474bb4 100644 (file)
@@ -26,7 +26,7 @@ class VTK_EXPORT vtkELNOSurfaceFilter: public vtkUnstructuredGridAlgorithm
 {
 public:
   static vtkELNOSurfaceFilter *New();
-  vtkTypeMacro(vtkELNOSurfaceFilter,vtkUnstructuredGridAlgorithm);
+  vtkTypeMacro(vtkELNOSurfaceFilter,vtkUnstructuredGridAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent);
 
 protected:
index a56b40418bff32e7b0fbf1c8a1491010ba0642c2..bb3fc7c992394cb6ccfbee2ab1ec0c00ab409854 100644 (file)
 #include <map>
 #include <deque>
 
-vtkStandardNewMacro(vtkExtractCellType);
+vtkStandardNewMacro(vtkExtractCellType)
 
-vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph);
+vtkCxxSetObjectMacro(vtkExtractCellType, SIL, vtkMutableDirectedGraph)
 
 ///////////////////
 
+/// \cond PRIVATE
 class ExtractCellTypeStatus
 {
 public:
@@ -216,7 +217,7 @@ bool vtkExtractCellType::vtkExtractCellTypeInternal::getStatusOfEntryStr(const c
       const ExtractCellTypeStatus& elt(getEntry(entry));
       return elt.getStatus();
     }  
-  catch (INTERP_KERNEL::Exception e)
+  catch (INTERP_KERNEL::Exception& /*e*/)
     {      
       //std::cerr << vtkDebugMacro"Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::getStatusOfEntryStr : " << e.what() << std::endl;
       return false;
@@ -230,7 +231,7 @@ void vtkExtractCellType::vtkExtractCellTypeInternal::setStatusOfEntryStr(const c
       const ExtractCellTypeStatus& elt(getEntry(entry));
       elt.setStatus(status);
     }
-  catch (INTERP_KERNEL::Exception e)
+  catch (INTERP_KERNEL::Exception& /*e*/)
     {      
       //std::cerr << "Exception has been thrown in vtkExtractCellType::vtkExtractCellTypeInternal::setStatusOfEntryStr : " << e.what() << std::endl;
     }
@@ -267,10 +268,11 @@ void ExtractCellTypeStatus::feedSIL(vtkMutableDirectedGraph *sil, vtkIdType root
 {
   vtkIdType InfoGeoType(sil->AddChild(root,childEdge));
   names.push_back(_type_str);
-  vtkIdType InfoVTKID(sil->AddChild(InfoGeoType,childEdge));
+  /*vtkIdType InfoVTKID(*/sil->AddChild(InfoGeoType,childEdge)/*)*/; // todo: unused
   std::ostringstream oss; oss << _vtkt;
   names.push_back(oss.str());
 }
+/// \endcond PRIVATE
 
 ////////////////////
 
@@ -294,7 +296,7 @@ void vtkExtractCellType::SetInsideOut(int val)
     }
 }
 
-int vtkExtractCellType::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   try
     {
@@ -375,8 +377,8 @@ vtkDataSet *FilterFamilies(vtkDataSet *input, const std::vector<int>& idsToKeep,
   output->ShallowCopy(input);
   vtkSmartPointer<vtkThreshold> thres(vtkSmartPointer<vtkThreshold>::New());
   thres->SetInputData(output);
-  vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData());
-  vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData());
+  //vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData()); // todo: unused
+  //vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
   //
   double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
   thres->ThresholdBetween(vMin,vMax);
@@ -414,14 +416,14 @@ vtkDataSet *FilterFamilies(vtkDataSet *input, const std::vector<int>& idsToKeep,
   return zeComputedOutput;
 }
 
-int vtkExtractCellType::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractCellType::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   try
     {
       //std::cerr << "########################################## vtkExtractCellType::RequestData        ##########################################" << std::endl;
       vtkInformation* inputInfo=inputVector[0]->GetInformationObject(0);
       vtkDataSet *input(vtkDataSet::SafeDownCast(inputInfo->Get(vtkDataObject::DATA_OBJECT())));
-      vtkInformation *info(input->GetInformation());
+      //vtkInformation *info(input->GetInformation()); // todo: unused
       vtkInformation *outInfo(outputVector->GetInformationObject(0));
       vtkDataSet *output(vtkDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
       std::vector<int> idsToKeep(this->Internal->getIdsToKeep());
index 624b9e629e3763bb19c0a096bee213ea6d2c30a9..bf763b0d2a54b1fd212f027f6329f99d45b94ed4 100644 (file)
@@ -44,10 +44,10 @@ protected:
   vtkExtractCellType();
   ~vtkExtractCellType();
 
-  int RequestInformation(vtkInformation *request,
+  int RequestInformation(vtkInformation * request,
       vtkInformationVector **inputVector, vtkInformationVector *outputVector);
 
-  int RequestData(vtkInformation *request, vtkInformationVector **inputVector,
+  int RequestData(vtkInformation * request, vtkInformationVector **inputVector,
       vtkInformationVector *outputVector);
   // Description:
   // This SIL stores the structure of the mesh/groups/cell types
index 0406578baaaa017c43e6bdd3722bd8b59d7e4736..5996b950c8adc5289fc1720c207d23fd13349685 100644 (file)
@@ -67,7 +67,7 @@
 #include <map>
 #include <deque>
 
-vtkStandardNewMacro(vtkExtractGroup);
+vtkStandardNewMacro(vtkExtractGroup)
 
 class vtkExtractGroup::vtkExtractGroupInternal : public ExtractGroupInternal
 {
@@ -93,14 +93,14 @@ void vtkExtractGroup::SetInsideOut(int val)
     }
 }
 
-int vtkExtractGroup::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractGroup::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
 {
 //  vtkUnstructuredGridAlgorithm::RequestInformation(request,inputVector,outputVector);
   try
     {
 //      std::cerr << "########################################## vtkExtractGroup::RequestInformation ##########################################" << std::endl;
 //      request->Print(cout);
-      vtkInformation *outInfo(outputVector->GetInformationObject(0));
+      //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
       vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
       if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
         {
@@ -140,8 +140,8 @@ vtkDataSet *FilterFamilies(vtkSmartPointer<vtkThreshold>& thres,
   vtkDataSet *output(input->NewInstance());
   output->ShallowCopy(input);
   thres->SetInputData(output);
-  vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData());
-  vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData());
+  //vtkDataSetAttributes *dscIn(input->GetCellData()),*dscIn2(input->GetPointData()); // todo: unused
+  //vtkDataSetAttributes *dscOut(output->GetCellData()),*dscOut2(output->GetPointData()); // todo: unused
   //
   double vMin(insideOut==0?1.:0.),vMax(insideOut==0?2.:1.);
   thres->ThresholdBetween(vMin,vMax);
@@ -214,7 +214,7 @@ public:
 private:
   vtkDataSet *_ds;
 };
-int vtkExtractGroup::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkExtractGroup::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   try
     {
@@ -233,7 +233,7 @@ int vtkExtractGroup::RequestData(vtkInformation *request, vtkInformationVector *
           return 0;
         }
       vtkDataSet *input(vtkDataSet::SafeDownCast(inputMB->GetBlock(0)));
-      vtkInformation *info(input->GetInformation());
+      //vtkInformation *info(input->GetInformation()); // todo: unused
       vtkInformation *outInfo(outputVector->GetInformationObject(0));
       vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
       std::set<int> idsToKeep(this->Internal->getIdsToKeep());
index ebfee7f7648632766721d857dfc649d34a110bd0..21410a22fca704bfb21a5bc49566bbb05d0c8449 100644 (file)
@@ -46,10 +46,10 @@ protected:
   vtkExtractGroup();
   ~vtkExtractGroup();
 
-  int RequestInformation(vtkInformation *request,
+  int RequestInformation(vtkInformation * request,
       vtkInformationVector **inputVector, vtkInformationVector *outputVector);
 
-  int RequestData(vtkInformation *request, vtkInformationVector **inputVector,
+  int RequestData(vtkInformation * request, vtkInformationVector **inputVector,
       vtkInformationVector *outputVector);
 
   // Description:
index e64e8ed1768709e4245153df7984e45f46b34208..6bb185f55af512ef5ceaaf4175c8e7173426179a 100644 (file)
@@ -48,7 +48,7 @@ class vtkGroupAsMultiBlockInternal : public ExtractGroupInternal
 {
 };
 
-vtkStandardNewMacro(vtkGroupAsMultiBlock);
+vtkStandardNewMacro(vtkGroupAsMultiBlock)
 
 vtkGroupAsMultiBlock::vtkGroupAsMultiBlock():Internal(new ExtractGroupInternal)
 {
@@ -59,9 +59,9 @@ vtkGroupAsMultiBlock::~vtkGroupAsMultiBlock()
   delete this->Internal;
 }
 
-int vtkGroupAsMultiBlock::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGroupAsMultiBlock::RequestInformation(vtkInformation */*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
 {
-  vtkInformation *outInfo(outputVector->GetInformationObject(0));
+  //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
   vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
   if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
   {
@@ -83,7 +83,7 @@ int vtkGroupAsMultiBlock::RequestData(vtkInformation *vtkNotUsed(request), vtkIn
     return 0;
   }
   vtkDataSet *input(vtkDataSet::SafeDownCast(inputMB->GetBlock(0)));
-  vtkInformation *info(input->GetInformation());
+  //vtkInformation *info(input->GetInformation()); // todo: unused
   vtkInformation *outInfo(outputVector->GetInformationObject(0));
   vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
   if(!output)
index ccb266e720608dc41ea1a49abd37b0ffca414dea..bb7ffb6acf627323e4c8f6a1f8e282c72414b778 100644 (file)
@@ -28,11 +28,11 @@ class vtkGroupAsMultiBlock : public vtkMultiBlockDataSetAlgorithm
 {
 public:
     static vtkGroupAsMultiBlock *New();
-    vtkTypeMacro(vtkGroupAsMultiBlock, vtkMultiBlockDataSetAlgorithm);
+    vtkTypeMacro(vtkGroupAsMultiBlock, vtkMultiBlockDataSetAlgorithm)
 protected:
     vtkGroupAsMultiBlock();
     ~vtkGroupAsMultiBlock();
-    int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
+    int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
     int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
 private:
     ExtractGroupInternal *Internal;
index 537710b8cff64accf5aa4a2024ccdd035bb6fc49..cac47f89d3b314b453fbc634762a087eee441566 100644 (file)
@@ -50,7 +50,7 @@ class vtkGroupsNamesInternal : public ExtractGroupInternal
 {
 };
 
-vtkStandardNewMacro(vtkGroupsNames);
+vtkStandardNewMacro(vtkGroupsNames)
 
 vtkGroupsNames::vtkGroupsNames():Internal(new ExtractGroupInternal)
 {
@@ -61,9 +61,9 @@ vtkGroupsNames::~vtkGroupsNames()
   delete this->Internal;
 }
 
-int vtkGroupsNames::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkGroupsNames::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector */*outputVector*/)
 {
-  vtkInformation *outInfo(outputVector->GetInformationObject(0));
+  //vtkInformation *outInfo(outputVector->GetInformationObject(0)); // todo: unused
   vtkInformation *inputInfo(inputVector[0]->GetInformationObject(0));
   if(!ExtractGroupInternal::IndependantIsInformationOK(vtkMEDReader::META_DATA(),inputInfo))
   {
@@ -98,7 +98,7 @@ int vtkGroupsNames::RequestData(vtkInformation *vtkNotUsed(request), vtkInformat
     vtkErrorMacro("vtkGroupsNames::RequestData : input is neither a DataSet nor a MultiblockDataSet !");
     return 0;
   }
-  vtkInformation *info(input->GetInformation());
+  //vtkInformation *info(input->GetInformation()); // todo: unused
   vtkInformation *outInfo(outputVector->GetInformationObject(0));
   vtkTable *output(vtkTable::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
   if(!output)
index 14af366e4e152c8921af8f3d1d3e7ea553d4f30f..09b01dbae4b32c645ad612904fcf983dafac50b0 100644 (file)
@@ -28,11 +28,11 @@ class vtkGroupsNames : public vtkTableAlgorithm
 {
 public:
     static vtkGroupsNames *New();
-    vtkTypeMacro(vtkGroupsNames, vtkTableAlgorithm);
+    vtkTypeMacro(vtkGroupsNames, vtkTableAlgorithm)
 protected:
     vtkGroupsNames();
     ~vtkGroupsNames();
-    int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
+    int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override;
     int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
 private:
     ExtractGroupInternal *Internal;
index c280c035b3f74653c0dbc2a74ba91b0ffd21a85d..47429cd5874b30f98f230a27e6b08be106e9cc90 100644 (file)
@@ -25,8 +25,8 @@
 class VTK_EXPORT vtkInformationGaussDoubleVectorKey : public vtkInformationDoubleVectorKey
 {
 public:
-  vtkTypeMacro(vtkInformationGaussDoubleVectorKey, vtkInformationDoubleVectorKey);
-  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE{}
+  vtkTypeMacro(vtkInformationGaussDoubleVectorKey, vtkInformationDoubleVectorKey)
+  void PrintSelf(ostream& /*os*/, vtkIndent /*indent*/) VTK_OVERRIDE{}
 
   vtkInformationGaussDoubleVectorKey(const char* name, const char* location,
     int length = -1) : vtkInformationDoubleVectorKey(name, location, length) { }
@@ -46,7 +46,7 @@ public:
   * Simply shallow copies the key from fromInfo to toInfo.
   * This is used by the pipeline to propagate this key downstream.
   */
-  void CopyDefaultInformation(vtkInformation* request,
+  void CopyDefaultInformation(vtkInformation* /*request*/,
     vtkInformation* fromInfo,
     vtkInformation* toInfo) VTK_OVERRIDE
   {
index 0afd22b9c1b2551a0d687861d75531329d0ad6f3..5666f36f98f454429f5e8f9c63e6d3e2df74805e 100644 (file)
@@ -33,7 +33,7 @@
 #include <vtkQuadratureSchemeDefinition.h>
 
 //-----------------------------------------------------------------------------
-vtkStandardNewMacro(vtkMEDQuadraturePointsGenerator);
+vtkStandardNewMacro(vtkMEDQuadraturePointsGenerator)
 
 //-----------------------------------------------------------------------------
 vtkMEDQuadraturePointsGenerator::vtkMEDQuadraturePointsGenerator()
index 392c71c20d772965b68f3077c4b720183219ad0c..30ab5750c96487c87d79f9a2d78935a9798386d2 100644 (file)
@@ -30,7 +30,7 @@ class vtkInformationVector;
 class VTK_EXPORT vtkMEDQuadraturePointsGenerator : public vtkQuadraturePointsGenerator
 {
 public:
-  vtkTypeMacro(vtkMEDQuadraturePointsGenerator,vtkQuadraturePointsGenerator);
+  vtkTypeMacro(vtkMEDQuadraturePointsGenerator,vtkQuadraturePointsGenerator)
   static vtkMEDQuadraturePointsGenerator *New();
 
 protected:
index 8cdaafbc16016d8d34dcbc3af5cbdf975d2f8f48..2739cd24c3165df48da1da8c45c40476542e54d2 100644 (file)
@@ -215,7 +215,7 @@ private:
   unsigned char FirstCall0;
 };
 
-vtkStandardNewMacro(vtkMEDReader);
+vtkStandardNewMacro(vtkMEDReader)
 
 // vtkInformationKeyMacro(vtkMEDReader, META_DATA, DataObjectMetaData); // Here we need to customize vtkMEDReader::META_DATA method
 // start of overload of vtkInformationKeyMacro
@@ -389,7 +389,7 @@ char *vtkMEDReader::GetFileName()
   return const_cast<char *>(this->Internal->FileName.c_str());
 }
 
-int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVector ** /*inputVector*/, vtkInformationVector *outputVector)
 {
 //  std::cout << "########################################## vtkMEDReader::RequestInformation ##########################################" << std::endl;
   if(!this->Internal)
@@ -422,7 +422,7 @@ int vtkMEDReader::RequestInformation(vtkInformation *request, vtkInformationVect
   return 1;
 }
 
-int vtkMEDReader::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkMEDReader::RequestData(vtkInformation *request, vtkInformationVector ** /*inputVector*/, vtkInformationVector *outputVector)
 {
 //  std::cout << "########################################## vtkMEDReader::RequestData ##########################################" << std::endl;
   if(!this->Internal)
@@ -432,7 +432,7 @@ int vtkMEDReader::RequestData(vtkInformation *request, vtkInformationVector **in
 //      request->Print(cout);
       vtkInformation *outInfo(outputVector->GetInformationObject(0));
       vtkMultiBlockDataSet *output(vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
-      bool isUpdated(false);
+      //bool isUpdated(false); // todo: unused
       double reqTS(0.);
       if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
         reqTS=outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
@@ -582,7 +582,7 @@ int vtkMEDReader::GetTimesFlagsArrayStatus(const char *name)
   return (int)this->Internal->TK.getTimesFlagArray()[pos].first;
 }
 
-void vtkMEDReader::UpdateSIL(vtkInformation* request, vtkInformation *info)
+void vtkMEDReader::UpdateSIL(vtkInformation* /*request*/, vtkInformation * /*info*/)
 {
   if(!this->Internal)
       return;
index a142ff5b44969d29752cf238720383ec736c46bc..4d0b361ee1dfd178fa307e24c4967cce938a52d1 100644 (file)
@@ -39,7 +39,7 @@ class VTK_EXPORT vtkMEDReader : public vtkMultiBlockDataSetAlgorithm
   void operator=(const vtkMEDReader&); // Not implemented.
  public:
   static vtkMEDReader *New();
-  vtkTypeMacro(vtkMEDReader, vtkMultiBlockDataSetAlgorithm);
+  vtkTypeMacro(vtkMEDReader, vtkMultiBlockDataSetAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent);
   virtual void SetFileName(const char*);
   virtual char *GetFileName();
@@ -80,7 +80,7 @@ class VTK_EXPORT vtkMEDReader : public vtkMultiBlockDataSetAlgorithm
   virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
   virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
  private:
-  void UpdateSIL(vtkInformation *request, vtkInformation *info);
+  void UpdateSIL(vtkInformation * request, vtkInformation * info);
   virtual double PublishTimeStepsIfNeeded(vtkInformation*, bool& isUpdated);
   virtual void FillMultiBlockDataSetInstance(vtkMultiBlockDataSet *output, double reqTS, ExportedTinyInfo *internalInfo=0);
   vtkDataSet *RetrieveDataSetAtTime(double reqTS, ExportedTinyInfo *internalInfo);
index b3d3de042305d72f20cbca5e5e8ee8fdbe2a716f..0ef4240d5225ea0c321fccebd3faa102de6f2b0f 100644 (file)
@@ -33,8 +33,8 @@
 
 #include "vtkMEDReader.h"
 
-vtkStandardNewMacro(vtkPVMetaDataInformation);
-vtkCxxSetObjectMacro(vtkPVMetaDataInformation, InformationData, vtkDataObject);
+vtkStandardNewMacro(vtkPVMetaDataInformation)
+vtkCxxSetObjectMacro(vtkPVMetaDataInformation, InformationData, vtkDataObject)
 
 //----------------------------------------------------------------------------
 vtkPVMetaDataInformation::vtkPVMetaDataInformation()
index 8002aeb9e7ea19b5468dbee80e8926840c74194f..3dc757b655696f957a092e24d8030140f1dd9f38 100644 (file)
@@ -30,7 +30,7 @@ class vtkPVMetaDataInformation : public vtkPVInformation
 {
 public:
   static vtkPVMetaDataInformation* New();
-  vtkTypeMacro(vtkPVMetaDataInformation, vtkPVInformation);
+  vtkTypeMacro(vtkPVMetaDataInformation, vtkPVInformation)
   void PrintSelf(ostream& os, vtkIndent indent);
 
   // Description:
index a92ec2869e294d1b50f81f5bf16414854699a080..c5b071c73a8fc33f277e5563d1438e86e4a159ce 100644 (file)
@@ -28,7 +28,7 @@
 #include "vtkCellData.h"
 #include "vtkPointData.h"
 
-vtkStandardNewMacro(vtkUgSelectCellIds);
+vtkStandardNewMacro(vtkUgSelectCellIds)
 
 void vtkUgSelectCellIds::SetIds(vtkIdTypeArray *ids)
 {
index acff0c5ed02181b2a4bfde3f78761b11bddc554d..5a1bea65c5b287e9c5ad9a6318f787b69649607c 100644 (file)
@@ -33,7 +33,7 @@ class vtkUgSelectCellIds : public vtkUnstructuredGridAlgorithm
 {
 public:
     static vtkUgSelectCellIds* New();
-    vtkTypeMacro(vtkUgSelectCellIds, vtkUnstructuredGridAlgorithm);
+    vtkTypeMacro(vtkUgSelectCellIds, vtkUnstructuredGridAlgorithm)
     void SetIds(vtkIdTypeArray *ids);
     vtkUgSelectCellIds() = default;
     ~vtkUgSelectCellIds() override = default;
index 82711f69d4272a4edca6bdc6d62a14217333a576..c067b8d8c7209141eb34eae1ebb82b5bc184111a 100644 (file)
@@ -28,7 +28,7 @@
 #include <QHeaderView>
 //-----------------------------------------------------------------------------
 pqAbstractFieldsWidget::pqAbstractFieldsWidget(
-  vtkSMProxy *smproxy, vtkSMProperty *smproperty, QWidget *parentObject)
+  vtkSMProxy *smproxy, vtkSMProperty * /*smproperty*/, QWidget *parentObject)
 : Superclass(smproxy, parentObject)
 {
   this->NItems = 0;
@@ -86,7 +86,7 @@ QSize pqAbstractFieldsWidget::sizeHint() const
 }
 
 //-----------------------------------------------------------------------------
-void pqAbstractFieldsWidget::onItemChanged(QTreeWidgetItem* item, int column) const
+void pqAbstractFieldsWidget::onItemChanged(QTreeWidgetItem* /*item*/, int column) const
 {
   if (column != 0)
     {
index 99b8e1e44a3ec1e217ce11e428b49c45d412d057..b58749456a197d67512df2891752ad848d1834e0 100644 (file)
@@ -43,7 +43,7 @@ class pqAbstractFieldsWidget : public pqPropertyWidget
   Q_PROPERTY(QList< QList< QVariant> > fieldsDomain READ getFields WRITE setFieldsDomain)
 public:
   pqAbstractFieldsWidget(
-    vtkSMProxy *smproxy, vtkSMProperty *smproperty, QWidget *parentObject = 0);
+  vtkSMProxy *smproxy, vtkSMProperty * smproperty, QWidget *parentObject = 0);
   virtual ~pqAbstractFieldsWidget();
 
   // Description
@@ -97,7 +97,7 @@ protected slots:
   virtual void onItemChanged(QTreeWidgetItem* itemOrig, int column) const;
 
 private:
-  Q_DISABLE_COPY(pqAbstractFieldsWidget);
+  Q_DISABLE_COPY(pqAbstractFieldsWidget)
 };
 
 #endif
index 3fb5fb21be198578af0d93366658ff2a8a5ce21d..1f8c300d0ffd5cb19251c75544a49a3a985c354d 100644 (file)
@@ -42,7 +42,7 @@ protected:
   void loadTreeWidgetItems();
 
 private:
-  Q_DISABLE_COPY(pqExtractGroupFieldsWidget);
+  Q_DISABLE_COPY(pqExtractGroupFieldsWidget)
 };
 
 #endif
index 8999666e8c85607365899e2f7d0c51ac3bc11608..cbcbbc86d39e04f91e36dd6d33f729be74ecc68f 100644 (file)
@@ -64,7 +64,7 @@ protected slots:
   void updateChecks();
 
 private:
-  Q_DISABLE_COPY(pqMEDReaderFieldsWidget);
+  Q_DISABLE_COPY(pqMEDReaderFieldsWidget)
 };
 
 #endif
index cf49eb9442e2881f67d3ce24c965502fa0794536..a281e7399ba92f2ab506a7d32bdd45c269fb9631 100644 (file)
@@ -51,7 +51,7 @@ signals:
   void modeEnabled(bool enable);
 
 private:
-  Q_DISABLE_COPY(pqMEDReaderTimeModeWidget);
+  Q_DISABLE_COPY(pqMEDReaderTimeModeWidget)
 
   // Description
   // Qt property value
index f7eac37d23b7d2a9ed06595adbe7fbfc1423714e..cb1538f233d44382bf4232bf4e3aa84c57816fcc 100644 (file)
@@ -85,7 +85,7 @@ protected:
   vtkIdType CachedTsId;
 
 private:
-  Q_DISABLE_COPY(pqMEDReaderTimesFlagsWidget);
+  Q_DISABLE_COPY(pqMEDReaderTimesFlagsWidget)
 };
 
 #endif
index f14047e65fca52d1c8162d889e988a4eb4fa4baa..10eb4bc52002c74f60cae7e386a97d250cb3d9c4 100644 (file)
@@ -33,7 +33,7 @@ public:
   virtual ~pqMEDReaderVectorsWidget();
 
 private:
-  Q_DISABLE_COPY(pqMEDReaderVectorsWidget);
+  Q_DISABLE_COPY(pqMEDReaderVectorsWidget)
 
   class pqInternals;
   pqInternals* Internals;
index 9c424df59054771952509b147fcd3c5145ae8d93..b2522addf7f350b409b52542e07dab7cf40ea92b 100644 (file)
@@ -264,7 +264,7 @@ MEDCouplingUMesh *BuildMeshFromCellArray(vtkCellArray *ca, DataArrayDouble *coor
   int nbCells(ca->GetNumberOfCells());
   if(nbCells==0)
     return 0;
-  vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+  //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
   const vtkIdType *conn(ca->GetData()->GetPointer(0));
   for(int i=0;i<nbCells;i++)
     {
@@ -285,7 +285,7 @@ MEDCouplingUMesh *BuildMeshFromCellArrayTriangleStrip(vtkCellArray *ca, DataArra
   int nbCells(ca->GetNumberOfCells());
   if(nbCells==0)
     return 0;
-  vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries());
+  //vtkIdType nbEntries(ca->GetNumberOfConnectivityEntries()); // todo: unused
   const vtkIdType *conn(ca->GetData()->GetPointer(0));
   ids=DataArrayIdType::New() ; ids->alloc(0,1);
   for(int i=0;i<nbCells;i++)
@@ -457,7 +457,7 @@ void PutAtLevelDealOrder(MEDFileData *mfd, int meshDimRel, const MicroField& mf,
   MCAuto<MEDCouplingUMesh> mesh(mf.getMesh());
   mesh->setName(mfd->getMeshes()->getMeshAtPos(0)->getName());
   MCAuto<DataArrayIdType> o2n(mesh->sortCellsInMEDFileFrmt());
-  const DataArrayIdType *o2nPtr(o2n);
+  //const DataArrayIdType *o2nPtr(o2n); // todo: unused
   MCAuto<DataArrayIdType> n2o;
   mmu->setMeshAtLevel(meshDimRel,mesh);
   const DataArrayIdType *n2oPtr(0);
@@ -570,8 +570,8 @@ std::vector<MCAuto<DataArray> > AddPartFields(const DataArrayIdType *part, vtkDa
       if(!arr)
         continue;
       const char *name(arr->GetName());
-      int nbCompo(arr->GetNumberOfComponents());
-      vtkIdType nbTuples(arr->GetNumberOfTuples());
+      //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+      //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
       MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
       if(part)
         mcarr=mcarr->selectByTupleId(part->begin(),part->end());
@@ -593,8 +593,8 @@ std::vector<MCAuto<DataArray> > AddPartFields2(int bg, int end, vtkDataSetAttrib
       if(!arr)
         continue;
       const char *name(arr->GetName());
-      int nbCompo(arr->GetNumberOfComponents());
-      vtkIdType nbTuples(arr->GetNumberOfTuples());
+      //int nbCompo(arr->GetNumberOfComponents()); // todo: unused
+      //vtkIdType nbTuples(arr->GetNumberOfTuples()); // todo: unused
       MCAuto<DataArray> mcarr(ConvertVTKArrayToMCArray(arr));
       mcarr=mcarr->selectByTupleIdSafeSlice(bg,end,1);
       mcarr->setName(name);
@@ -744,13 +744,13 @@ void ConvertFromUnstructuredGrid(MEDFileData *ret, vtkUnstructuredGrid *ds, cons
   vtkCellArray *ca(ds->GetCells());
   if(!ca)
     return ;
-  vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
-  vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+  //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+  //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
   vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
   if(!ct)
     throw MZCException("ConvertFromUnstructuredGrid : internal error");
   vtkIdTypeArray *cla(ds->GetCellLocationsArray());
-  const vtkIdType *claPtr(cla->GetPointer(0));
+  //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
   if(!cla)
     throw MZCException("ConvertFromUnstructuredGrid : internal error 2");
   const unsigned char *ctPtr(ct->GetPointer(0));
@@ -779,10 +779,9 @@ void ConvertFromUnstructuredGrid(MEDFileData *ret, vtkUnstructuredGrid *ds, cons
             }
         }
     }
-  int dummy(0);
   MCAuto<DataArrayInt> levs(lev->getDifferentValues());
   std::vector< MicroField > ms;
-  vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+  //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
   for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
     {
       MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
index 8256941dce8b77eeb2516643a67124cfb6001ec4..199372809f2cd44641a4d84d0de5ae5190d94d12 100644 (file)
@@ -44,8 +44,8 @@ class VTK_EXPORT MZCException : public std::exception
 {
 public:
   MZCException(const std::string& s):_reason(s) { }
-  virtual const char *what() const throw() { return _reason.c_str(); }
-  virtual ~MZCException() throw() { }
+  virtual const char *what() const noexcept { return _reason.c_str(); }
+  virtual ~MZCException() noexcept { }
 private:
   std::string _reason;
 };
index d44702ab04415d23d51490584bb93aa246c621a7..a3905dafed559dfc8391fa061dfc688a83f8c666 100644 (file)
@@ -70,7 +70,7 @@
 #include <map>
 #include <sstream>
 
-vtkStandardNewMacro(vtkMEDWriter);
+vtkStandardNewMacro(vtkMEDWriter)
 
 using MEDCoupling::MCAuto;
 using MEDCoupling::MEDFileData;
@@ -140,7 +140,6 @@ void LoadFamGrpMapInfo(vtkMutableDirectedGraph* sil, std::string& meshName,
       "There is an internal error ! The tree on server side has not the expected look !");
   vtkAdjacentVertexIterator* it0(vtkAdjacentVertexIterator::New());
   sil->GetAdjacentVertices(id0, it0);
-  int kk(0), ll(0);
   while (it0->HasNext())
   {
     vtkIdType id1(it0->Next());
@@ -194,7 +193,7 @@ vtkMEDWriter::vtkMEDWriter()
 vtkMEDWriter::~vtkMEDWriter() {}
 
 int vtkMEDWriter::RequestInformation(
-  vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+  vtkInformation* /*request*/, vtkInformationVector** inputVector, vtkInformationVector* /*outputVector*/)
 {
   // std::cerr << "########################################## vtkMEDWriter::RequestInformation
   // ########################################## " << (const char *) this->FileName << std::endl;
index 67b20d6a296e5878151dae385ab862c9875b1e6d..02381552b41d0410a05eb487cb8f65632bae7332 100644 (file)
@@ -42,7 +42,7 @@ protected:
   vtkMEDWriter();
   ~vtkMEDWriter();
 
-  int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);
+  int RequestInformation(vtkInformation * request, vtkInformationVector **inputVector, vtkInformationVector * outputVector);
   int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector);
   int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
 private:
index 7263b0ce7fdf253c5d1ad0f144e8ce08d7777f4e..6202c8c7f6448745bde5f1feda0162f2c8896f81 100644 (file)
@@ -38,7 +38,7 @@
 #include <algorithm>
 
 //----------------------------------------------
-vtkStandardNewMacro(vtkParaGEOMCorbaSource);
+vtkStandardNewMacro(vtkParaGEOMCorbaSource)
 
 void *vtkParaGEOMCorbaSource::Orb=0;
 
@@ -95,12 +95,13 @@ int vtkParaGEOMCorbaSource::FillOutputPortInformation(int vtkNotUsed(port), vtkI
 }
 
 //----------------------------------------------
-int vtkParaGEOMCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector) {
+int vtkParaGEOMCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector) {
   vtkInformation *outInfo=outputVector->GetInformationObject(0);
   vtkMultiBlockDataSet *ret0=vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
-  double reqTS = 0;
+  /*double reqTS = 0; // todo: unused
   if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
     reqTS = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
+  */
   try {
     //Client request on ORB.
     CORBA::ORB_var *OrbC=(CORBA::ORB_var *)this->Orb;
index 96affb137a38b95aa2d6e931b0e302fa793f964d..a0e39d5a8e2b1966352070f8e55d9e53eb9ec2ac 100644 (file)
@@ -27,7 +27,7 @@
 class vtkParaGEOMCorbaSource : public vtkAlgorithm {
  public:
   static vtkParaGEOMCorbaSource* New();
-  vtkTypeMacro(vtkParaGEOMCorbaSource, vtkAlgorithm);
+  vtkTypeMacro(vtkParaGEOMCorbaSource, vtkAlgorithm)
   virtual void PrintSelf( ostream& os, vtkIndent indent );
   const char *GetIORCorba();
   void SetIORCorba(char *ior);
index 002ba6a3fde09fea7cd4afc7a1de862623684d8a..5936198456f7e0f3664ebb40c07d0f47ef56c958 100644 (file)
@@ -48,7 +48,7 @@
 #include "ParaMEDCouplingCorbaServant.hh"
 //
 
-vtkStandardNewMacro(vtkParaMEDCorbaSource);
+vtkStandardNewMacro(vtkParaMEDCorbaSource)
 //vtkCxxRevisionMacro(vtkParaMEDCorbaSource,"$Revision$");
 
 void *vtkParaMEDCorbaSource::Orb=0;
@@ -137,7 +137,7 @@ int vtkParaMEDCorbaSource::FillOutputPortInformation(int vtkNotUsed(port), vtkIn
   return 1;
 }
 
-int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outInfo)
+int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outInfo)
 {
   vtkInformation* myInfo=outInfo->GetInformationObject(0);
   //myInfo->Set(vtkDataObject::DATA_TYPE_NAME(),"vtkUnstructuredGrid");
@@ -188,7 +188,7 @@ int vtkParaMEDCorbaSource::RequestInformation(vtkInformation* request, vtkInform
   return 1;
 }
 
-int vtkParaMEDCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector)
+int vtkParaMEDCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector)
 {
   vtkInformation *outInfo=outputVector->GetInformationObject(0);
   //
@@ -273,6 +273,7 @@ int vtkParaMEDCorbaSource::RequestData(vtkInformation* request, vtkInformationVe
   catch(CORBA::Exception&) {
     vtkErrorMacro("On fetching object error occurs");
   }
+  return 0;
 }
 
 void vtkParaMEDCorbaSource::PrintSelf(ostream& os, vtkIndent indent)
index 95697cfa3553a930af883236a5087861968fd5a5..714154f65fe0fa3ae6dcf69f33e419c192235113 100644 (file)
@@ -54,7 +54,7 @@ void ParaMEDMEM2VTK::FillMEDCouplingCurveLinearMeshInstanceFrom(SALOME_MED::MEDC
   SALOME_TYPES::ListOfDouble *bigD;
   meshPtr->getSerialisationData(tinyI,bigD);
   delete tinyI;
-  if(bigD->length()!=nbOfNodes*spaceDim)
+  if((int)bigD->length()!=nbOfNodes*spaceDim)
     vtkErrorWithObjectMacro(ret,"Internal error in ParaMEDCorba plugin : distant curvilinear mesh, mismatch between informations ! Internal error !");
   for(int i=0;i<nbOfNodes;i++)
     {
index 5f37bd5aba74609ab04c8f792d4953b0f68d6439..d51651d0b00898a9db9b7532deb547a269fa9f3f 100644 (file)
@@ -327,7 +327,7 @@ int ParaMEDMEM2VTK::MEDCouplingMultiFieldsFetcher::getPosGivenTimeLabel(double t
       return i;
   //2nd chance
   std::vector<double>::iterator it=std::find_if(_time_label_per_field.begin(),_time_label_per_field.end(),
-      std::bind2nd(std::greater<double>(),t));
+      std::bind(std::greater<double>(),std::placeholders::_1,t));
   if(it!=_time_label_per_field.end() && it!=_time_label_per_field.end())
     return std::distance(_time_label_per_field.begin(),it);
   //
index ba44eddb986e84f65dad8ebd1dce4ea9150dbb64..1f7ca41407f4bac82eca26f16dae55ae4e5cb2ee 100644 (file)
@@ -43,9 +43,9 @@ void ParaMEDMEM2VTK::FillMEDCouplingUMeshInstanceFrom(SALOME_MED::MEDCouplingUMe
   //
   int spaceDim=(*tinyI)[1];
   int nbOfNodes=(*tinyI)[2];
-  int meshDim=(*tinyI)[5];
+  //int meshDim=(*tinyI)[5]; // todo: unused
   int nbOfCells=(*tinyI)[6];
-  int meshLength=(*tinyI)[7];
+  //int meshLength=(*tinyI)[7]; // todo: unused
   std::string name((*tinyS)[0]);
   //std::vector<std::string> compoNames(spaceDim);
   //for(int i=0;i<spaceDim;i++)
index f59882634ad945e40f72e92bccc6ecbafee3cf0d..b66388eb584782629b7e9f191933644d3bffb804 100644 (file)
@@ -33,7 +33,7 @@
 
 #include <algorithm>
 
-vtkStandardNewMacro(vtkParaSMESHCorbaSource);
+vtkStandardNewMacro(vtkParaSMESHCorbaSource)
 
 void *vtkParaSMESHCorbaSource::Orb=0;
 
@@ -90,13 +90,14 @@ int vtkParaSMESHCorbaSource::FillOutputPortInformation(int vtkNotUsed(port), vtk
 }
 
 //----------------------------------------------
-int vtkParaSMESHCorbaSource::RequestData(vtkInformation* request, vtkInformationVector** inInfo, vtkInformationVector* outputVector) {
+int vtkParaSMESHCorbaSource::RequestData(vtkInformation* /*request*/, vtkInformationVector** /*inInfo*/, vtkInformationVector* outputVector) {
   vtkInformation *outInfo=outputVector->GetInformationObject(0);
   vtkMultiBlockDataSet *ret0=vtkMultiBlockDataSet::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT()));
+  /* todo: unused
   double reqTS = 0;
   if(outInfo->Has(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP()))
     reqTS = outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEP());
-
+  */
   try {
     CORBA::ORB_var *OrbC=(CORBA::ORB_var *)this->Orb;
     CORBA::Object_var obj=(*OrbC)->string_to_object(&IOR[0]);
index 8e35f661dc94a7ca5f737fd9d46b8442f00f73f2..cd29c266e7299eded4e7b0365a99d2889d96b2d0 100644 (file)
@@ -27,7 +27,7 @@
 class vtkParaSMESHCorbaSource: public vtkAlgorithm {
  public:
   static vtkParaSMESHCorbaSource* New();
-  vtkTypeMacro(vtkParaSMESHCorbaSource, vtkAlgorithm);
+  vtkTypeMacro(vtkParaSMESHCorbaSource, vtkAlgorithm)
   
   
   const char *GetIORCorba();
index ec9edbda0094c0904d4493da9144510f1d610b96..1f9743feb198edeed9ef7490970574450c4c3d25 100644 (file)
@@ -31,7 +31,7 @@
 using namespace std;
 
 // vtkCxxRevisionMacro(vtkScaleVectorFilter, "$Revision$");
-vtkStandardNewMacro(vtkScaleVectorFilter);
+vtkStandardNewMacro(vtkScaleVectorFilter)
 
 vtkScaleVectorFilter::vtkScaleVectorFilter()
 {
index 83b676db1a4832e67e10b06776984a7dffa29512..4893ef15d94aa42db70e2c769780cc78bf9e461f 100644 (file)
@@ -26,7 +26,7 @@ class VTK_EXPORT vtkScaleVectorFilter : public vtkPassInputTypeAlgorithm
 {
 public:
   static vtkScaleVectorFilter* New();
-  vtkTypeMacro(vtkScaleVectorFilter, vtkPassInputTypeAlgorithm);
+  vtkTypeMacro(vtkScaleVectorFilter, vtkPassInputTypeAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   // Description :
index 1a6ac09ed164e7c03f0e4d48305bb6c776b72e52..beaf6d4d9ec56493c023264df250e4a1aecec0b0 100644 (file)
@@ -64,7 +64,7 @@
 #include <map>
 #include <sstream>
 
-vtkStandardNewMacro(vtkSimpleMode);
+vtkStandardNewMacro(vtkSimpleMode)
 
 static const char ZE_DISPLACEMENT_NAME1[] = "@@ForReal?@@";
 
@@ -83,8 +83,8 @@ public:
     : _reason(s)
   {
   }
-  virtual const char* what() const throw() { return _reason.c_str(); }
-  virtual ~MZCException() throw() {}
+  virtual const char* what() const noexcept { return _reason.c_str(); }
+  virtual ~MZCException() noexcept {}
 
 private:
   std::string _reason;
@@ -406,7 +406,7 @@ int vtkSimpleMode::FillOutputPortInformation(int vtkNotUsed(port), vtkInformatio
 }
 
 int vtkSimpleMode::RequestInformation(
-  vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+      vtkInformation* /*request*/, vtkInformationVector** /*inputVector*/, vtkInformationVector* /*outputVector*/)
 {
   // std::cerr << "########################################## vtkSimpleMode::RequestInformation
   // ##########################################" << std::endl;
@@ -441,7 +441,7 @@ int vtkSimpleMode::RequestInformation(
 }
 
 int vtkSimpleMode::RequestData(
-  vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
+    vtkInformation* /*request*/, vtkInformationVector** inputVector, vtkInformationVector* outputVector)
 {
   // std::cerr << "########################################## vtkSimpleMode::RequestData
   // ##########################################" << std::endl;
@@ -497,7 +497,7 @@ int vtkSimpleMode::RequestData(
         continue;
       double* arrPtr(arr2->GetPointer(0));
       std::transform(arrPtr, arrPtr + nbCompo * nbTuples, arrPtr,
-        std::bind2nd(std::multiplies<double>(), cos(AnimationTime * 2 * M_PI)));
+        std::bind(std::multiplies<double>(),std::placeholders::_1, cos(AnimationTime * 2 * M_PI)));
     }
     //
     vtkDataArray* array = output->GetPointData()->GetArray(idx2);
index 9111561bf97838065292f8a02ecf3c5b6a07b141..a9542f2e2baf441cfae22a5c028681a41d2f22f9 100644 (file)
@@ -29,7 +29,7 @@ class VTK_EXPORT vtkSimpleMode : public vtkDataSetAlgorithm
 {
 public:
   static vtkSimpleMode* New();
-  vtkTypeMacro(vtkSimpleMode, vtkDataSetAlgorithm);
+  vtkTypeMacro(vtkSimpleMode, vtkDataSetAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
   void SetInputArrayToProcess(
index e583f63475a3e95138572bad41550c57f793e679..453775950dfbe317e816d27fa35c9854014d4240 100644 (file)
@@ -87,7 +87,7 @@ using MEDCoupling::MEDCouplingFieldDouble;
 using MEDCoupling::ON_GAUSS_PT;
 using MEDCoupling::MCAuto;
 
-vtkStandardNewMacro(vtkVoroGauss);
+vtkStandardNewMacro(vtkVoroGauss)
 ///////////////////
 
 std::map<int,int> ComputeMapOfType()
@@ -287,13 +287,13 @@ void ConvertFromUnstructuredGrid(vtkUnstructuredGrid *ds, std::vector< MCAuto<ME
   vtkCellArray *ca(ds->GetCells());
   if(!ca)
     return ;
-  vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries());
-  vtkIdType *caPtr(ca->GetData()->GetPointer(0));
+  //vtkIdType nbEnt(ca->GetNumberOfConnectivityEntries()); // todo: unused
+  //vtkIdType *caPtr(ca->GetData()->GetPointer(0)); // todo: unused
   vtkUnsignedCharArray *ct(ds->GetCellTypesArray());
   if(!ct)
     throw INTERP_KERNEL::Exception("ConvertFromUnstructuredGrid : internal error");
   vtkIdTypeArray *cla(ds->GetCellLocationsArray());
-  const vtkIdType *claPtr(cla->GetPointer(0));
+  //const vtkIdType *claPtr(cla->GetPointer(0)); // todo: unused
   if(!cla)
     throw INTERP_KERNEL::Exception("ConvertFromUnstructuredGrid : internal error 2");
   const unsigned char *ctPtr(ct->GetPointer(0));
@@ -315,7 +315,7 @@ void ConvertFromUnstructuredGrid(vtkUnstructuredGrid *ds, std::vector< MCAuto<ME
         }
     }
   MCAuto<DataArrayInt> levs(lev->getDifferentValues());
-  vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations());
+  //vtkIdTypeArray *faces(ds->GetFaces()),*faceLoc(ds->GetFaceLocations()); // todo: unused
   for(const int *curLev=levs->begin();curLev!=levs->end();curLev++)
     {
       MCAuto<MEDCouplingUMesh> m0(MEDCouplingUMesh::New("",*curLev));
@@ -660,7 +660,7 @@ vtkSmartPointer<vtkUnstructuredGrid> Voronize(const MEDCouplingUMesh *m, const D
           throw INTERP_KERNEL::Exception(oss.str());
         }
       int np(gaussLoc->GetNumberOfQuadraturePoints()),nbPtsPerCell((int)cm.getNumberOfNodes());
-      const double *sfw(gaussLoc->GetShapeFunctionWeights()),*w(gaussLoc->GetQuadratureWeights());;
+      const double /**sfw(gaussLoc->GetShapeFunctionWeights()),*/*w(gaussLoc->GetQuadratureWeights());; // todo: sfw is unused
       std::vector<double> refCoo,posInRefCoo,wCpp(w,w+np);
       FillAdvInfoFrom((*it2).second,GaussAdvData,np,nbPtsPerCell,refCoo,posInRefCoo);
       field->setGaussLocalizationOnType(*it,refCoo,posInRefCoo,wCpp);
@@ -838,7 +838,7 @@ vtkVoroGauss::~vtkVoroGauss()
 {
 }
 
-int vtkVoroGauss::RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkVoroGauss::RequestInformation(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector * /*outputVector*/)
 { 
   //std::cerr << "########################################## vtkVoroGauss::RequestInformation ##########################################" << std::endl;
   try
@@ -860,7 +860,7 @@ int vtkVoroGauss::RequestInformation(vtkInformation *request, vtkInformationVect
   return 1;
 }
 
-int vtkVoroGauss::RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
+int vtkVoroGauss::RequestData(vtkInformation * /*request*/, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 {
   //std::cerr << "########################################## vtkVoroGauss::RequestData        ##########################################" << std::endl;
   try
@@ -874,7 +874,7 @@ int vtkVoroGauss::RequestData(vtkInformation *request, vtkInformationVector **in
       ExtractInfo(inputVector[0],usgIn);
       //
       vtkSmartPointer<vtkUnstructuredGrid> ret(ComputeVoroGauss(usgIn,GaussAdvData));
-      vtkInformation *inInfo(inputVector[0]->GetInformationObject(0));
+      //vtkInformation *inInfo(inputVector[0]->GetInformationObject(0)); // todo: unused
       vtkInformation *outInfo(outputVector->GetInformationObject(0));
       vtkUnstructuredGrid *output(vtkUnstructuredGrid::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
       output->ShallowCopy(ret);
index 79c5a5e33bb5f0e4364c6ea44233aa57ff157075..3b0e854e49cc64bf4144099d8171520d39d4401d 100644 (file)
@@ -29,7 +29,7 @@ class VTK_EXPORT vtkVoroGauss : public vtkUnstructuredGridAlgorithm
 {
 public:
   static vtkVoroGauss* New();
-  vtkTypeMacro(vtkVoroGauss, vtkUnstructuredGridAlgorithm);
+  vtkTypeMacro(vtkVoroGauss, vtkUnstructuredGridAlgorithm)
   void PrintSelf(ostream& os, vtkIndent indent) override;
 
 protected:
index beb2a9d588a1967296948e1641739833bf963727..b05bcb1bd0f014c76ef7ffe62e13d7acb8903c96 100644 (file)
@@ -61,7 +61,7 @@ PVViewer_Behaviors::PVViewer_Behaviors(QMainWindow * parent)
  * This method should be updated at each new version of ParaView with what is found in
  *    Qt/ApplicationComponents/pqParaViewBehaviors.cxx
  */
-void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * desk)
+void PVViewer_Behaviors::instanciateMinimalBehaviors(QMainWindow * /*desk*/)
 {
   if (BehaviorLoadingLevel < 1)
     {
index 081b06428ab0312bca6f49f5e76ce560a2c85123..2ff678d26ee1aac496fe46bcf8685cbd46daa85c 100644 (file)
@@ -57,7 +57,7 @@ pqPVApplicationCore * PVViewer_Core::GetPVApplication()
   \param fullSetup whether to instanciate all behaviors or just the minimal ones.
   \return \c true if ParaView has been initialized successfully, otherwise false
 */
-bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * logWindow)
+bool PVViewer_Core::ParaviewInitApp(QMainWindow * aDesktop, LogWindow * /*logWindow*/)
 {
   if ( ! MyCoreApp) {
       // Obtain command-line arguments
index ff252f363c9d8ff6f021709fee66e0dc22e816b6..359a1876460b4ea8c3d8110db9e1be3eb6b68aac 100644 (file)
@@ -96,7 +96,7 @@ pqTabbedMultiViewWidget * PVViewer_GUIElements::getTabbedMultiViewWidget()
       // Create a new view proxy on the server
       pqObjectBuilder* builder = pqApplicationCore::instance()->getObjectBuilder();
       pqServer* active_serv = pqActiveObjects::instance().activeServer();
-      pqView * pqview = builder->createView(QString("RenderView"), active_serv);
+      /*pqView * pqview = */builder->createView(QString("RenderView"), active_serv); // todo: unused
     }
 
   return multiv;
index bdcef2da8d019eff01afad949e31674137bc1556..ca9cb0b029144960e9e3d9b3b5cd05a4b7a65d19 100644 (file)
@@ -50,7 +50,7 @@ void KERNEL_PYTHON::init_python(int argc, char **argv)
   // set stdout to line buffering (aka C++ std::cout)
   setvbuf(stdout, (char *)NULL, _IOLBF, BUFSIZ);
   char* salome_python=getenv("SALOME_PYTHON");
-  size_t size_salome_python = sizeof(salome_python) / sizeof(salome_python[0]);
+  //size_t size_salome_python = sizeof(salome_python) / sizeof(salome_python[0]); // unused
   if(salome_python != 0)
          Py_SetProgramName(Py_DecodeLocale(salome_python, NULL));
 
index 7b1c74d840288549686dbbb0ffba84ccd223cf8c..2075e681d3efadf42450b4a89a31c374a30fe7ad 100644 (file)
@@ -60,9 +60,8 @@ public:
    */
   ~PyLockWrapper()
   {
-    PyThreadState* _currState = PyGILState_GetThisThreadState();
 #ifdef _DEBUG_
-    if (_currState != _state)
+    if (PyGILState_GetThisThreadState() != _state)
     {
       std::cout << "!!!!!!!!! PyLockWrapper inconsistency - now entering infinite loop for debugging\n";
       while(1);
index edc9a0109252ee1927046f8d86a698816aa95449..29d95feb31ed05560bea8c8c4097d9896ed68cd4 100644 (file)
@@ -37,9 +37,9 @@ int main(int argc, char ** argv)
 
     // Nothing important, just a bunch of calls to some Py* functions!
     PyRun_SimpleString("import base64");
-    PyObject * sysmod = PyImport_AddModule("sys");
-    PyObject* sysdict = PyModule_GetDict(sysmod);
-    PyObject* tmp = PyDict_GetItemString(sysdict, "modules");
+    /*PyObject * sysmod = */PyImport_AddModule("sys"); // todo: unused
+    //PyObject* sysdict = PyModule_GetDict(sysmod); // todo: unused
+    //PyObject* tmp = PyDict_GetItemString(sysdict, "modules"); // todo: unused
   }
   std::cout << "Done with Py call" << std::endl;