dbaccess/source/core/api/KeySet.cxx |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 04ccd3fab8e620633a11c84a642378b0b241c3a0
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Mon Mar 28 16:51:33 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Mon Mar 28 20:06:41 2022 +0200

    -Werror,-Wunused-but-set-variable
    
    ...since 35dce7a06088386f13636bc355bc35e93be6ba5d "INTEGRATION: CWS 
warnings01"
    
    Change-Id: Iaae91d7792348d0bf61173c5839295c8aa1b938f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132225
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/dbaccess/source/core/api/KeySet.cxx 
b/dbaccess/source/core/api/KeySet.cxx
index 847a9c1a07cc..ba712b574bc4 100644
--- a/dbaccess/source/core/api/KeySet.cxx
+++ b/dbaccess/source/core/api/KeySet.cxx
@@ -463,7 +463,6 @@ void OKeySet::updateRow(const ORowSetRow& _rInsertRow 
,const ORowSetRow& _rOrigi
     std::vector<sal_Int32> aIndexColumnPositions;
 
     const sal_Int32 nOldLength = aSql.getLength();
-    sal_Int32 i = 1;
     // here we build the condition part for the update statement
     for (auto const& columnName : *m_pColumnNames)
     {
@@ -499,7 +498,6 @@ void OKeySet::updateRow(const ORowSetRow& _rInsertRow 
,const ORowSetRow& _rOrigi
         {
             aSql.append(::dbtools::quoteName( 
aQuote,columnName.second.sRealName) + aPara);
         }
-        ++i;
     }
 
     if( aSql.getLength() != nOldLength )

Reply via email to