From 7f5a9096be8518aff99c3a227d78f36c6dc124fb Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Wed, 6 Sep 2023 11:49:16 +0200 Subject: 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 --- sc/source/core/data/column3.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sc') 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(nRow - 1)); + // silence set-but-unused warning for non-dbg build + (void) nRow; xPrevGrp = pPrev->CreateCellGroup(2, eCompState == ScFormulaCell::EqualInvariant); pCur->SetCellGroup(xPrevGrp); ++nRow; -- cgit