Fix a couple of gcc compiler warnings:

-Wint-in-bool-context
-Wunused-function
This commit is contained in:
wmayer
2019-06-23 15:35:49 +02:00
parent cb53719821
commit d43ca8a692
3 changed files with 8 additions and 4 deletions

View File

@@ -157,7 +157,7 @@ bool DriverMED_W_Field::Set(SMESHDS_Mesh * mesh,
else
_dblValues.reserve( nbElems * nbComps );
return nbElems * nbComps;
return nbElems * nbComps > 0;
}
//================================================================================

View File

@@ -3575,7 +3575,7 @@ namespace { // Structures used by FixQuadraticElements()
bool Contains( const SMDS_MeshNode* node ) const { return count(node); }
bool IsSpoiled(const QLink* bentLink ) const;
//bool IsSpoiled(const QLink* bentLink ) const;
TLinkInSet GetBoundaryLink( const TLinkSet& links,
const TChainLink& avoidLink,
@@ -3970,7 +3970,7 @@ namespace { // Structures used by FixQuadraticElements()
* \brief Checks if the face is distorted due to bentLink
*/
//================================================================================
#if 0
bool QFace::IsSpoiled(const QLink* bentLink ) const
{
// code is valid for convex faces only
@@ -3995,7 +3995,7 @@ namespace { // Structures used by FixQuadraticElements()
return false;
}
#endif
//================================================================================
/*!
* \brief Find pairs of continues faces

View File

@@ -348,7 +348,9 @@ namespace
}
return _surfaceInt;
}
#ifdef WITH_TBB
bool IsThreadSafe(set< const Standard_Transient* >& noSafeTShapes) const;
#endif
};
// --------------------------------------------------------------------------
/*!
@@ -1350,6 +1352,7 @@ namespace
addIntPoint(/*toClassify=*/false);
}
}
#ifdef WITH_TBB
//================================================================================
/*
* check if its face can be safely intersected in a thread
@@ -1414,6 +1417,7 @@ namespace
}
return isSafe;
}
#endif
//================================================================================
/*!
* \brief Creates topology of the hexahedron