diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-09-21 15:55:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-09-21 15:55:08 +0200 |
commit | 6ac0dc7003ac51274d3c18dba33eb952deac2e45 (patch) | |
tree | 33488822f2ec2cb935052df526c0e8a97af31101 /compilerplugins/clang | |
parent | 2a612907aef4c9987f906c6b98aa9b400f58f617 (diff) |
-Werror=unused-but-set-variable
Change-Id: I8bdf8a4c04256ad665960dd6f0d71d032156a34b
Diffstat (limited to 'compilerplugins/clang')
-rw-r--r-- | compilerplugins/clang/flatten.cxx | 2 |
1 files changed, 0 insertions, 2 deletions
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); } } |