[Libreoffice-commits] core.git: compilerplugins/clang

Miklos Vajna (via logerrit) logerrit at kemper.freedesktop.org
Fri Oct 25 07:10:50 UTC 2019


 compilerplugins/clang/stringadd.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit ce3badb157c58941608f878a7de98c7739e30aec
Author:     Miklos Vajna <vmiklos at collabora.com>
AuthorDate: Fri Oct 25 09:09:09 2019 +0200
Commit:     Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Oct 25 09:09:53 2019 +0200

    compilerplugins: fix -Werror,-Wunused-lambda-capture
    
    Change-Id: I2a1374a1e79401c2107d003102ab797fac9a3d66

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)


More information about the Libreoffice-commits mailing list