sc/inc/patattr.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6eaf4d7451e37e985b9d50701e6cdbfc97308a0c
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Dec 10 09:43:33 2024 +0100
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Dec 10 11:24:43 2024 +0100

    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 <stephan.bergm...@allotropia.de>
    Tested-by: Jenkins

diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx
index 44b7e370bf32..0e56ac981e9f 100644
--- a/sc/inc/patattr.hxx
+++ b/sc/inc/patattr.hxx
@@ -138,7 +138,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
 

Reply via email to