summaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-13 21:24:59 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-14 13:07:37 +0200
commit3ef807504072fcdf09653f88927683ff4f90e503 (patch)
treee58c036c91d12750abbe03af9a9af81b4923e367 /registry
parent85a2b2222da0e535446ce46bfcc60d13dad714f1 (diff)
version COVERITY conditionals
so there's a recheck on each major if they are still needed Change-Id: I351f731fe4eaec0ebf735147a9a168cccba3bca5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174883 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'registry')
-rw-r--r--registry/source/reflread.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/registry/source/reflread.cxx b/registry/source/reflread.cxx
index fe223c7b46cb..844b73166e03 100644
--- a/registry/source/reflread.cxx
+++ b/registry/source/reflread.cxx
@@ -955,7 +955,7 @@ RTParamMode MethodList::getMethodParamMode(sal_uInt16 index, sal_uInt16 paramInd
return aMode;
}
-#if defined(__COVERITY__)
+#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023
extern "C" void __coverity_tainted_data_sanitize__(void *);
#endif
@@ -967,7 +967,7 @@ sal_uInt16 MethodList::getMethodExcCount(sal_uInt16 index) const
{
try {
aCount = readUINT16(m_pIndex[index] + calcMethodParamIndex(readUINT16(m_pIndex[index] + METHOD_OFFSET_PARAM_COUNT)));
-#if defined(__COVERITY__)
+#if defined(__COVERITY__) && __COVERITY_MAJOR__ <= 2023
__coverity_tainted_data_sanitize__(&aCount);
#endif
} catch (BlopObject::BoundsError &) {