sc/inc/patattr.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 7e651fe7e427b5a96d4bcb9e1bac1a638010975f Author: Stephan Bergmann <[email protected]> AuthorDate: Tue Dec 10 09:43:33 2024 +0100 Commit: Stephan Bergmann <[email protected]> CommitDate: Fri Aug 29 07:52:03 2025 +0200 Silence -Werror,-Wunused-private-field ...in DBG_UTIL-only code introduced in 2e1f9da8a6359c8909e087a92239aefd4851b116 "Decouple ScPatternAttr from SfxItemPool", which only started to generate a warning now with Clang 20 trunk, presumably since <https://github.com/llvm/llvm-project/commit/d457100a8152cc2ebf8cd219caae92cc0f591156> "[Clang] Fix -Wunused-private-field false negative with defaulted comparison operators (#116871)" (and only warns about m_nSerialNumber, which is only written to in the ctor, but not about m_bDeleted, which is also written to in the dtor, even though neither of them appears to ever be read) Change-Id: Id7fb1cc1e082464d4c5b935bdd194edf92704505 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178202 Reviewed-by: Stephan Bergmann <[email protected]> Tested-by: Jenkins (cherry picked from commit 6eaf4d7451e37e985b9d50701e6cdbfc97308a0c) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190340 Tested-by: Jenkins CollaboraOffice <[email protected]> Reviewed-by: Stephan Bergmann <[email protected]> diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx index 8218bca676cb..70e72ba403e6 100644 --- a/sc/inc/patattr.hxx +++ b/sc/inc/patattr.hxx @@ -139,7 +139,7 @@ class SAL_DLLPUBLIC_RTTI ScPatternAttr final sal_uInt64 mnPAKey; mutable size_t mnRefCount; #ifdef DBG_UTIL - sal_uInt32 m_nSerialNumber; + [[maybe_unused]] sal_uInt32 m_nSerialNumber; bool m_bDeleted; #endif
