sw/source/core/layout/tabfrm.cxx | 6 ++++++ 1 file changed, 6 insertions(+)
New commits: commit c645ea801b4e06ab7be7e4a2912e6b1261015522 Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Thu Jan 18 13:20:28 2024 +0100 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Thu Jan 18 19:51:51 2024 +0100 -Werror,-Wunused-but-set-variable (Emscripten) Change-Id: I5e0ce1137a09583d5d180ad922fba4ec27f8a6c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162252 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de> diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx index 033f692f47cc..71f677d613f5 100644 --- a/sw/source/core/layout/tabfrm.cxx +++ b/sw/source/core/layout/tabfrm.cxx @@ -6045,7 +6045,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) { auto pLegacy = static_cast<const sw::LegacyModifyHint*>(&rHint); const SfxPoolItem* pVertOrientItem = nullptr; +#if !ENABLE_WASM_STRIP_ACCESSIBILITY const SfxPoolItem* pProtectItem = nullptr; +#endif const SfxPoolItem* pFrameDirItem = nullptr; const SfxPoolItem* pBoxItem = nullptr; const auto nWhich = pLegacy->m_pNew ? pLegacy->m_pNew->Which() : 0; @@ -6055,7 +6057,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) { auto& rChgSet = *static_cast<const SwAttrSetChg*>(pLegacy->m_pNew)->GetChgSet(); pVertOrientItem = rChgSet.GetItemIfSet(RES_VERT_ORIENT, false); +#if !ENABLE_WASM_STRIP_ACCESSIBILITY pProtectItem = rChgSet.GetItemIfSet(RES_PROTECT, false); +#endif pFrameDirItem = rChgSet.GetItemIfSet(RES_FRAMEDIR, false); pBoxItem = rChgSet.GetItemIfSet(RES_BOX, false); break; @@ -6064,7 +6068,9 @@ void SwCellFrame::SwClientNotify(const SwModify& rMod, const SfxHint& rHint) pVertOrientItem = pLegacy->m_pNew; break; case RES_PROTECT: +#if !ENABLE_WASM_STRIP_ACCESSIBILITY pProtectItem = pLegacy->m_pNew; +#endif break; case RES_FRAMEDIR: pFrameDirItem = pLegacy->m_pNew;