From 4dfa9758363f8622efe7c3f9e181b603b33fcb2f Mon Sep 17 00:00:00 2001 From: Kristian Bendiksen Date: Fri, 24 Apr 2020 20:09:09 +0200 Subject: [PATCH] Fix warnings about "statement without effect" on gcc 7 on linux. --- .../ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp | 2 +- .../Completions/RimFractureTemplateCollection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp b/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp index c23dbfb107..a136034a9e 100644 --- a/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp +++ b/ApplicationCode/ModelVisualization/Riv3dWellLogCurveGeometryGenerator.cpp @@ -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 ) { diff --git a/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp b/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp index 32cbc6bfb5..0f13ea39aa 100644 --- a/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp +++ b/ApplicationCode/ProjectDataModel/Completions/RimFractureTemplateCollection.cpp @@ -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 ) {