Skip to content
Permalink
Browse files

external/mdal: fix warnings about unused variables

  • Loading branch information
rouault authored and nyalldawson committed Jun 13, 2020
1 parent e4dafb5 commit 2946083b013239ffcb1a95d8e8b2c5924373820c
Showing with 1 addition and 3 deletions.
  1. +1 −0 external/mdal/frmts/mdal_tuflowfv.cpp
  2. +0 −3 external/mdal/frmts/mdal_ugrid.cpp
@@ -370,6 +370,7 @@ void MDAL::DriverTuflowFV::populateFaces( MDAL::Faces &faces )
assert( faces.empty() );
size_t faceCount = mDimensions.size( CFDimensions::Face );
size_t vertexCount = mDimensions.size( CFDimensions::Vertex );
( void )vertexCount;
faces.resize( faceCount );

// Parse 2D Mesh
@@ -342,7 +342,6 @@ void MDAL::DriverUgrid::populateFaces( MDAL::Faces &faces )

for ( size_t i = 0; i < faceCount; ++i )
{
size_t nVertices = verticesInFace;
std::vector<size_t> idxs;

for ( size_t j = 0; j < verticesInFace; ++j )
@@ -353,8 +352,6 @@ void MDAL::DriverUgrid::populateFaces( MDAL::Faces &faces )
if ( fillVal == val )
{
// found fill val
nVertices = j;
assert( nVertices > 1 );
break;
}
else

0 comments on commit 2946083

Please sign in to comment.
You can’t perform that action at this time.