Skip to content

Commit

Permalink
Supress clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 28, 2022
1 parent fe0ab98 commit 5a0e2e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/core/actions/qgsaction.cpp
Expand Up @@ -40,6 +40,10 @@

bool QgsAction::runable() const
{
#ifdef __clang__
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wbugprone-branch-clone"
#endif
switch ( mType )
{
case Qgis::AttributeActionType::Generic:
Expand Down Expand Up @@ -70,6 +74,9 @@ bool QgsAction::runable() const
#endif
}
return false;
#ifdef __clang__
#pragma clang diagnostic pop
#endif
}

void QgsAction::run( QgsVectorLayer *layer, const QgsFeature &feature, const QgsExpressionContext &expressionContext ) const
Expand Down

0 comments on commit 5a0e2e2

Please sign in to comment.