Skip to content

Commit

Permalink
Avoid warning in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 18, 2018
1 parent ae8e063 commit 48f166e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/mesh/qgsmeshlayer.cpp
Expand Up @@ -313,7 +313,11 @@ bool QgsMeshLayer::readXml( const QDomNode &layer_node, QgsReadWriteContext &con
QString uri = context.pathResolver().readPath( elemUri.text() );

bool res = mDataProvider->addDataset( uri );
#ifdef QGISDEBUG
QgsDebugMsg( QStringLiteral( "extra dataset (res %1): %2" ).arg( res ).arg( uri ) );
#else
( void )res; // avoid unused warning in release builds
#endif

elemUri = elemUri.nextSiblingElement( QStringLiteral( "uri" ) );
}
Expand Down

0 comments on commit 48f166e

Please sign in to comment.