sc/source/core/data/column3.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 86ce6799ea488884ff5c4357fb6a6a9b22456fb2 Author: Christian Lohmaier <lohmaier+libreoff...@googlemail.com> AuthorDate: Wed Sep 6 11:49:16 2023 +0200 Commit: Michael Stahl <michael.st...@allotropia.de> CommitDate: Thu Sep 14 18:05:32 2023 +0200 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+libreoff...@googlemail.com> (cherry picked from commit 7f5a9096be8518aff99c3a227d78f36c6dc124fb) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156600 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> 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;