From 9f5166bfb8ef8152bd98df4ac77e8c13ba68388f Mon Sep 17 00:00:00 2001 From: SALOME Date: Wed, 26 Aug 2020 11:14:56 +0300 Subject: [PATCH] #18963 Minimize compiler warnings --- src/GMSHPlugin/GMSHPlugin_Hypothesis.cxx | 8 ++++---- src/GMSHPlugin/GMSHPlugin_Hypothesis_i.cxx | 4 ++-- src/GMSHPlugin/GMSHPlugin_i.cxx | 1 - 3 files changed, 6 insertions(+), 7 deletions(-) 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_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_i.cxx b/src/GMSHPlugin/GMSHPlugin_i.cxx index 41780fd..e3ac90c 100644 --- a/src/GMSHPlugin/GMSHPlugin_i.cxx +++ b/src/GMSHPlugin/GMSHPlugin_i.cxx @@ -58,7 +58,6 @@ extern "C" aCreator = new GMSHPlugin_Creator_i; else if (strcmp(aHypName, "GMSH_Parameters_2D") == 0) aCreator = new GMSHPlugin_Creator_i; - else ; return aCreator; } -- 2.39.2