[Libreoffice-commits] core.git: compilerplugins/clang
Stephan Bergmann
sbergman at redhat.com
Thu Sep 21 13:55:37 UTC 2017
compilerplugins/clang/flatten.cxx | 2 --
1 file changed, 2 deletions(-)
New commits:
commit 6ac0dc7003ac51274d3c18dba33eb952deac2e45
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Thu Sep 21 15:55:08 2017 +0200
-Werror=unused-but-set-variable
Change-Id: I8bdf8a4c04256ad665960dd6f0d71d032156a34b
diff --git a/compilerplugins/clang/flatten.cxx b/compilerplugins/clang/flatten.cxx
index 145311144fee..adcc4972fd8f 100644
--- a/compilerplugins/clang/flatten.cxx
+++ b/compilerplugins/clang/flatten.cxx
@@ -141,10 +141,8 @@ bool Flatten::rewrite(const IfStmt* ifStmt)
conditionString = "!(" + conditionString + ")";
std::string thenString = getSourceAsString(thenRange);
- bool thenIsCompound = false;
if (auto compoundStmt = dyn_cast<CompoundStmt>(ifStmt->getThen())) {
if (compoundStmt->getLBracLoc().isValid()) {
- thenIsCompound = true;
thenString = stripOpenAndCloseBrace(thenString);
}
}
More information about the Libreoffice-commits
mailing list