From ce3badb157c58941608f878a7de98c7739e30aec Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 25 Oct 2019 09:09:09 +0200 Subject: compilerplugins: fix -Werror,-Wunused-lambda-capture Change-Id: I2a1374a1e79401c2107d003102ab797fac9a3d66 --- compilerplugins/clang/stringadd.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'compilerplugins/clang/stringadd.cxx') 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(operatorCall->getArg(arg)->IgnoreParenImpCasts()); if (e == nullptr) -- cgit