summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-09-06 11:49:16 +0200
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2023-09-06 16:40:08 +0200
commit7f5a9096be8518aff99c3a227d78f36c6dc124fb (patch)
tree71cd0b85577767c07532c3ed4a49096a506264fb /sc
parent218b73d937453d5d813a050f1216840ba71f4fe7 (diff)
fix "variable 'nRow' set but not used [-Werror,-Wunused-but-set-variable]"
as seen on non-debug builds with compiling for x86_64 with XCode 14.3.1 Change-Id: Ib0b97cfcf15cc58d08a90bc0b4aaf43fc1be3c05 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156614 Tested-by: Jenkins Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/column3.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx
index eb478fd2a462..054e334edb06 100644
--- a/sc/source/core/data/column3.cxx
+++ b/sc/source/core/data/column3.cxx
@@ -3638,6 +3638,8 @@ public:
{
// Both previous and current cells are regular cells.
assert(pPrev->aPos.Row() == static_cast<SCROW>(nRow - 1));
+ // silence set-but-unused warning for non-dbg build
+ (void) nRow;
xPrevGrp = pPrev->CreateCellGroup(2, eCompState == ScFormulaCell::EqualInvariant);
pCur->SetCellGroup(xPrevGrp);
++nRow;