X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHexoticPlugin%2FMG_Hexotic_API.cxx;fp=src%2FHexoticPlugin%2FMG_Hexotic_API.cxx;h=beb9bffd4e5237a022fb2fe6eabfe09c8807a0c6;hb=2c9230e78ba7cef9339273699b9de88450983e5f;hp=82fc6ba90bb59195cbfbd7de742dbbd221187305;hpb=7a62de42e4a246dfeaade4ee0d420b0a5778c3f1;p=plugins%2Fhexoticplugin.git diff --git a/src/HexoticPlugin/MG_Hexotic_API.cxx b/src/HexoticPlugin/MG_Hexotic_API.cxx index 82fc6ba..beb9bff 100644 --- a/src/HexoticPlugin/MG_Hexotic_API.cxx +++ b/src/HexoticPlugin/MG_Hexotic_API.cxx @@ -373,7 +373,7 @@ struct MG_Hexotic_API::LibData _nbRequiredTria = nb; } - void AddNode( double x, double y, double z, int domain ) + void AddNode( double x, double y, double z, int /*domain*/ ) { _xyz.push_back( x ); _xyz.push_back( y ); @@ -701,6 +701,14 @@ bool MG_Hexotic_API::LibData::Compute() return true; } +#else // ifdef USE_MG_LIBS + +struct MG_Hexotic_API::LibData // to avoid compiler warnings +{ + volatile bool& _cancelled_flag; + double& _progress; + LibData(volatile bool& cancelled_flag, double& progress): _cancelled_flag{cancelled_flag}, _progress{progress} {} +}; #endif // ifdef USE_MG_LIBS @@ -714,9 +722,9 @@ bool MG_Hexotic_API::LibData::Compute() MG_Hexotic_API::MG_Hexotic_API(volatile bool& cancelled_flag, double& progress) { _useLib = false; + _libData = new LibData( cancelled_flag, progress ); #ifdef USE_MG_LIBS _useLib = true; - _libData = new LibData( cancelled_flag, progress ); _libData->Init(); if ( getenv("MG_HEXA_USE_EXE")) _useLib = false; @@ -901,7 +909,7 @@ void MG_Hexotic_API::GmfGotoKwd( int iMesh, GmfKwdCod what ) */ //================================================================================ -void MG_Hexotic_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int dummy ) +void MG_Hexotic_API::GmfGetLin( int iMesh, GmfKwdCod what, int* nbNodes, int* faceInd, int* ori, int* domain, int /*dummy*/ ) { if ( _useLib ) { #ifdef USE_MG_LIBS