Skip to content

Commit

Permalink
Fix a couple of gcc compiler warnings:
Browse files Browse the repository at this point in the history
-Wint-in-bool-context
-Wunused-function
  • Loading branch information
wwmayer committed Jun 23, 2019
1 parent 85270f5 commit da6155d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/3rdParty/salomesmesh/src/SMESH/DriverMED_W_Field.cpp
Expand Up @@ -157,7 +157,7 @@ bool DriverMED_W_Field::Set(SMESHDS_Mesh * mesh,
else
_dblValues.reserve( nbElems * nbComps );

return nbElems * nbComps;
return nbElems * nbComps > 0;
}

//================================================================================
Expand Down
6 changes: 3 additions & 3 deletions src/3rdParty/salomesmesh/src/SMESH/SMESH_MesherHelper.cpp
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand All @@ -3995,7 +3995,7 @@ namespace { // Structures used by FixQuadraticElements()
return false;

}

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

0 comments on commit da6155d

Please sign in to comment.