From: SALOME Date: Wed, 26 Aug 2020 08:14:56 +0000 (+0300) Subject: fight warnings c++17, fix minor warnings. Build GMSHPLUGIN finished X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b2e6839cc225ca2593cdf817d46271182c90b3b;p=plugins%2Fgmshplugin.git fight warnings c++17, fix minor warnings. Build GMSHPLUGIN finished --- diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx index d425d92..5a55ab2 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx @@ -331,8 +331,8 @@ std::istream & GMSHPlugin_Hypothesis::LoadFrom(std::istream & load) * \retval bool - always false */ //================================================================================ -bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh, - const TopoDS_Shape& theShape) +bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, + const TopoDS_Shape& /*theShape*/) { return false; } @@ -344,8 +344,8 @@ bool GMSHPlugin_Hypothesis::SetParametersByMesh(const SMESH_Mesh* theMesh, */ //================================================================================ -bool GMSHPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& dflts, - const SMESH_Mesh* theMesh) +bool GMSHPlugin_Hypothesis::SetParametersByDefaults(const TDefaults& /*dflts*/, + const SMESH_Mesh* /*theMesh*/) { //_nbSegPerEdge = dflts._nbSegments; //_maxSize = dflts._elemLength; diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis.hxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis.hxx index 8cc61dc..90609fc 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis.hxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis.hxx @@ -140,13 +140,13 @@ public: * \param theShape - the geometry of interest * \retval bool - always false */ - virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape); + virtual bool SetParametersByMesh(const SMESH_Mesh* /*theMesh*/, const TopoDS_Shape& /*theShape*/); /*! * \brief Initialize my parameter values by default parameters. * \retval bool - true if parameter values have been successfully defined */ - virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0); + virtual bool SetParametersByDefaults(const TDefaults& /*dflts*/, const SMESH_Mesh* theMesh=0); private: Algo2D _algo2d; diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx index 89b32d3..54000b7 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx @@ -352,7 +352,7 @@ std::string GMSHPlugin_Hypothesis_i::getMethodOfParameter(const int paramIndex, bool GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ) const + std::vector< int > & /*subIDArray*/ ) const { typedef ::GMSHPlugin_Hypothesis THyp; const THyp* impl = static_cast( myBaseImpl ); @@ -371,7 +371,7 @@ GMSHPlugin_Hypothesis_i::getObjectsDependOn( std::vector< std::string > & entryA bool GMSHPlugin_Hypothesis_i::setObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ) + std::vector< int > & /*subIDArray*/ ) { typedef ::GMSHPlugin_Hypothesis THyp; THyp* impl = static_cast< THyp* >( myBaseImpl ); diff --git a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.hxx b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.hxx index f9b79a1..79d1831 100644 --- a/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.hxx +++ b/src/GMSHPlugin/GMSHPlugin_Hypothesis_i.hxx @@ -170,11 +170,11 @@ class GMSHPLUGIN_EXPORT GMSHPlugin_Hypothesis_i: // Return geometry this hypothesis depends on. Return false if there is no geometry parameter virtual bool getObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ) const; + std::vector< int > & /*subIDArray*/ ) const; // Set new geometry instead of that returned by getObjectsDependOn() virtual bool setObjectsDependOn( std::vector< std::string > & entryArray, - std::vector< int > & subIDArray ); + std::vector< int > & /*subIDArray*/ ); }; #endif