summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-03-28 14:35:52 +0200
committerAndras Timar <andras.timar@collabora.com>2023-07-07 10:36:19 +0200
commit076bdae84aa8d97a169b369bd5f88d70c458e789 (patch)
tree4456f43ec0f707ae9d93cd225b8415e51538758b
parent150246a7c5a476ab78fadee4c5fe99aeb1670f83 (diff)
-Werror,-Wunused-but-set-variable
...since 8e73111faeb9620117801fee89a838a407f0b7e5 "CWS-TOOLING: integrate CWS ab72" Change-Id: Ib2fdccc36090d366ca2288b31bd1948832366c95 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132210 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--basic/source/comp/exprtree.cxx2
1 files changed, 0 insertions, 2 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index 6b101ce81ca6..989f1c6330c5 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -719,7 +719,6 @@ std::unique_ptr<SbiExprNode> SbiExpression::Comp()
std::unique_ptr<SbiExprNode> pNd = Cat();
if( m_eMode != EXPRMODE_EMPTY_PAREN )
{
- short nCount = 0;
for( ;; )
{
SbiToken eTok = pParser->Peek();
@@ -734,7 +733,6 @@ std::unique_ptr<SbiExprNode> SbiExpression::Comp()
}
eTok = pParser->Next();
pNd = std::make_unique<SbiExprNode>( std::move(pNd), eTok, Cat() );
- nCount++;
}
}
return pNd;