svx/source/svdraw/svdpage.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit ca10ae200aac01e6b238567fa637cdc293f70f7a
Author:     Heiko Tietze <heiko.tie...@documentfoundation.org>
AuthorDate: Fri May 26 10:17:53 2023 +0200
Commit:     Heiko Tietze <heiko.tie...@documentfoundation.org>
CommitDate: Fri May 26 13:05:07 2023 +0200

    Suppress variable not used warning
    
    Change-Id: Ie154c9ad2d187adf735590da2e23420572dd5de4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152294
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>
    Tested-by: Jenkins

diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx
index 55d3e7f5aa6b..175f58b2ad7a 100644
--- a/svx/source/svdraw/svdpage.cxx
+++ b/svx/source/svdraw/svdpage.cxx
@@ -139,7 +139,9 @@ void SdrObjList::CopyObjects(const SdrObjList& rSrcList)
 
     mbObjOrdNumsDirty = false;
     mbRectsDirty = false;
+#ifdef DBG_UTIL
     size_t nCloneErrCnt(0);
+#endif
     const size_t nCount(rSrcList.GetObjCount());
 
     if(nullptr == getSdrObjectFromSdrObjList() && nullptr == 
getSdrPageFromSdrObjList())
@@ -162,10 +164,12 @@ void SdrObjList::CopyObjects(const SdrObjList& rSrcList)
             NbcInsertObject(pDO.get(), SAL_MAX_SIZE);
             aCloneList.AddPair(pSO, pDO.get());
         }
+#ifdef DBG_UTIL
         else
         {
             nCloneErrCnt++;
         }
+#endif
     }
 
     // Wires up the connections

Reply via email to