Skip to content

Commit

Permalink
external/mdal: fix warnings about unused variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and nyalldawson committed Jun 15, 2020
1 parent e4dafb5 commit 2946083
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions external/mdal/frmts/mdal_tuflowfv.cpp
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions external/mdal/frmts/mdal_ugrid.cpp
Expand Up @@ -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 )
Expand All @@ -353,8 +352,6 @@ void MDAL::DriverUgrid::populateFaces( MDAL::Faces &faces )
if ( fillVal == val )
{
// found fill val
nVertices = j;
assert( nVertices > 1 );
break;
}
else
Expand Down

0 comments on commit 2946083

Please sign in to comment.