diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-12-10 09:43:33 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-12-10 11:24:43 +0100 |
commit | 6eaf4d7451e37e985b9d50701e6cdbfc97308a0c (patch) | |
tree | 93a6749f8da3188720228a83841c495ea221caf1 /sc/inc | |
parent | 330eefb2b9aa29f2fcf5c7bb8005d2889c8190de (diff) |
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.bergmann@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/patattr.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 |