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; }