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

Tor Lillqvist (via logerrit) logerrit at kemper.freedesktop.org
Mon Oct 14 09:56:02 UTC 2019


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

New commits:
commit 621fe7497a4f9e919e19e28c5682cfe77da1ed04
Author:     Tor Lillqvist <tml at collabora.com>
AuthorDate: Mon Oct 14 12:53:53 2019 +0300
Commit:     Tor Lillqvist <tml at collabora.com>
CommitDate: Mon Oct 14 12:55:09 2019 +0300

    Comment out a lambda capture that isn't used, to avoid compiler warning
    
    (The use of it is also commented out.)
    
    Change-Id: Ie015a8cbd0f7a982721a389487c2134a1aba8ed1

diff --git a/compilerplugins/clang/stringadd.cxx b/compilerplugins/clang/stringadd.cxx
index a3435bab7cb5..69251411ae70 100644
--- a/compilerplugins/clang/stringadd.cxx
+++ b/compilerplugins/clang/stringadd.cxx
@@ -193,7 +193,7 @@ bool StringAdd::VisitCXXOperatorCallExpr(CXXOperatorCallExpr const* operatorCall
         && !tc.Class("OString").Namespace("rtl").GlobalNamespace())
         return true;
 
-    auto check = [operatorCall, this, &tc](const MaterializeTemporaryExpr* matTempExpr) {
+    auto check = [/* operatorCall, */ this, &tc](const MaterializeTemporaryExpr* matTempExpr) {
         auto tc3 = loplugin::TypeCheck(matTempExpr->getType());
         if (!tc3.Class("OUString").Namespace("rtl").GlobalNamespace()
             && !tc3.Class("OString").Namespace("rtl").GlobalNamespace())


More information about the Libreoffice-commits mailing list