summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2019-10-25 09:09:09 +0200
committerMiklos Vajna <vmiklos@collabora.com>2019-10-25 09:09:53 +0200
commitce3badb157c58941608f878a7de98c7739e30aec (patch)
tree7c8113a24cbc08b8c2495ebaf229a6944759ad07
parent98e92c2ca1fa83b6d2df778dfe27fc85bfdaf549 (diff)
compilerplugins: fix -Werror,-Wunused-lambda-capture
Change-Id: I2a1374a1e79401c2107d003102ab797fac9a3d66
-rw-r--r--compilerplugins/clang/stringadd.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/compilerplugins/clang/stringadd.cxx b/compilerplugins/clang/stringadd.cxx
index 399af5138fd9..8b96de07e109 100644
--- a/compilerplugins/clang/stringadd.cxx
+++ b/compilerplugins/clang/stringadd.cxx
@@ -194,6 +194,7 @@ bool StringAdd::VisitCXXOperatorCallExpr(CXXOperatorCallExpr const* operatorCall
return true;
auto check = [operatorCall, this, &tc](unsigned arg) {
+ (void)tc;
auto const e
= dyn_cast<CXXFunctionalCastExpr>(operatorCall->getArg(arg)->IgnoreParenImpCasts());
if (e == nullptr)