Skip to content
Permalink
Browse files

Avoid warning in release builds

  • Loading branch information
nyalldawson committed Aug 18, 2018
1 parent ae8e063 commit 48f166eb26a251a2699b6fe3b57422efc31c3a3e
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/core/mesh/qgsmeshlayer.cpp
@@ -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" ) );
}

0 comments on commit 48f166e

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