summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-07-06 16:21:50 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-07-06 16:22:57 +0200
commit0f92d79708118d99fca4c60c30cd5c63c24e02fb (patch)
treedf7215463350a63c7334183478f15f920da30c32 /sal
parent6a4e4fc74b8b66961fbfa86cde88ce72f84d1544 (diff)
Silence loplugin:staticmethods under --disable-debug
...after 0d3f9667bbc7b1a22d33dc92a2028fc712495a8e "AllocatorTraits::size can be static after all" Change-Id: I7fb2558c322dd7d92f3a3bda9a93a1b3da575d2e
Diffstat (limited to 'sal')
-rw-r--r--sal/cpprt/operators_new_delete.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/cpprt/operators_new_delete.cxx b/sal/cpprt/operators_new_delete.cxx
index 40fdd330302e..6f681e1a92fa 100644
--- a/sal/cpprt/operators_new_delete.cxx
+++ b/sal/cpprt/operators_new_delete.cxx
@@ -54,6 +54,8 @@ struct AllocatorTraits
#if OSL_DEBUG_LEVEL > 0
memcpy (p, m_signature, sizeof(signature_type));
p = static_cast<char*>(p) + sizeof(signature_type);
+#else
+ (void) this; // silence loplugin:staticmethods
#endif /* OSL_DEBUG_LEVEL */
return p;
}
@@ -66,6 +68,8 @@ struct AllocatorTraits
{
OSL_FAIL("operator delete mismatch");
}
+#else
+ (void) this; // silence loplugin:staticmethods
#endif /* OSL_DEBUG_LEVEL */
return p;
}