From 0f92d79708118d99fca4c60c30cd5c63c24e02fb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 6 Jul 2016 16:21:50 +0200 Subject: Silence loplugin:staticmethods under --disable-debug ...after 0d3f9667bbc7b1a22d33dc92a2028fc712495a8e "AllocatorTraits::size can be static after all" Change-Id: I7fb2558c322dd7d92f3a3bda9a93a1b3da575d2e --- sal/cpprt/operators_new_delete.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sal') 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(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; } -- cgit