Fix a couple of gcc compiler warnings:
-Wint-in-bool-context -Wunused-function
This commit is contained in:
@@ -157,7 +157,7 @@ bool DriverMED_W_Field::Set(SMESHDS_Mesh * mesh,
|
||||
else
|
||||
_dblValues.reserve( nbElems * nbComps );
|
||||
|
||||
return nbElems * nbComps;
|
||||
return nbElems * nbComps > 0;
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user