Skip to content

Commit

Permalink
Silence warning
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 30, 2018
1 parent 86f951c commit b219283
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/core/qgsthreadingutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ class CORE_EXPORT QgsThreadingUtils
return true;
}
#else
Q_UNUSED( feedback )
func();
return true;
#endif
Expand Down
2 changes: 2 additions & 0 deletions src/core/qgsvectorlayerutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,8 @@ std::unique_ptr<QgsVectorLayerFeatureSource> QgsVectorLayerUtils::getFeatureSour
{
#if QT_VERSION >= QT_VERSION_CHECK( 5, 10, 0 )
Q_ASSERT( QThread::currentThread() == qApp->thread() || feedback );
#else
Q_UNUSED( feedback )
#endif
QgsVectorLayer *lyr = layer.data();

Expand Down

0 comments on commit b219283

Please sign in to comment.