Fix warnings about "statement without effect" on gcc 7 on linux.

This commit is contained in:
Kristian Bendiksen 2020-04-24 20:09:09 +02:00 committed by Magne Sjaastad
parent 92f4e6278c
commit 4dfa975836
2 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ bool Riv3dWellLogCurveGeometryGenerator::findClosestPointOnCurve( const cvf::Vec
*closestPoint = cvf::Vec3d::UNDEFINED;
*measuredDepthAtPoint = cvf::UNDEFINED_DOUBLE;
*valueAtClosestPoint = cvf::UNDEFINED_DOUBLE;
if ( m_curveVertices.size() < 2u ) false;
if ( m_curveVertices.size() < 2u ) return false;
CVF_ASSERT( m_curveVertices.size() == m_curveValues.size() );
for ( size_t i = 1; i < m_curveVertices.size(); ++i )
{

View File

@ -406,7 +406,7 @@ void RimFractureTemplateCollection::initAfterRead()
else
{
bool anySetShowStimPlanMeshIsSetToFalse = false;
for ( templateIt; templateIt != stimPlanFractureTemplatesInView.end(); templateIt++ )
for ( ; templateIt != stimPlanFractureTemplatesInView.end(); templateIt++ )
{
if ( templateIt->first->showStimPlanMesh() == false )
{