sc/source/core/data/PivotTableFormatOutput.cxx | 2 -- 1 file changed, 2 deletions(-)
New commits: commit f017fe99f7e7a1beb2c7809b04e069831e706afb Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Fri Apr 12 09:13:53 2024 +0200 Commit: Caolán McNamara <caolan.mcnam...@collabora.com> CommitDate: Fri Apr 12 18:05:48 2024 +0200 sc: fix -Werror,-Wunused-but-set-variable Pointed out by clang-15: sc/source/core/data/PivotTableFormatOutput.cxx:256:12: error: variable 'nEntryIndex' set but not used [-Werror,-Wunused-but-set-variable] size_t nEntryIndex = 0; ^ Change-Id: I3abf7fe6d4ed330cd713472ce4102eeef6aea4dc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166022 Reviewed-by: Miklos Vajna <vmik...@collabora.com> Tested-by: Caolán McNamara <caolan.mcnam...@collabora.com> Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com> diff --git a/sc/source/core/data/PivotTableFormatOutput.cxx b/sc/source/core/data/PivotTableFormatOutput.cxx index 350aef597ebd..c3732a888ae7 100644 --- a/sc/source/core/data/PivotTableFormatOutput.cxx +++ b/sc/source/core/data/PivotTableFormatOutput.cxx @@ -253,7 +253,6 @@ void FormatOutput::apply(ScDocument& rDocument) if (!mpFormats) return; - size_t nEntryIndex = 0; for (auto const& rOutputEntry : maFormatOutputEntries) { if (!rOutputEntry.onTab || !rOutputEntry.pPattern) @@ -339,7 +338,6 @@ void FormatOutput::apply(ScDocument& rDocument) { rDocument.ApplyPattern(*oColumn, *oRow, *rOutputEntry.onTab, *rOutputEntry.pPattern); } - nEntryIndex++; } }