Silence loplugin:staticmethods under --disable-debug
...after 0d3f9667bb
"AllocatorTraits::size can be
static after all"
Change-Id: I7fb2558c322dd7d92f3a3bda9a93a1b3da575d2e
This commit is contained in:
@@ -54,6 +54,8 @@ struct AllocatorTraits
|
|||||||
#if OSL_DEBUG_LEVEL > 0
|
#if OSL_DEBUG_LEVEL > 0
|
||||||
memcpy (p, m_signature, sizeof(signature_type));
|
memcpy (p, m_signature, sizeof(signature_type));
|
||||||
p = static_cast<char*>(p) + sizeof(signature_type);
|
p = static_cast<char*>(p) + sizeof(signature_type);
|
||||||
|
#else
|
||||||
|
(void) this; // silence loplugin:staticmethods
|
||||||
#endif /* OSL_DEBUG_LEVEL */
|
#endif /* OSL_DEBUG_LEVEL */
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
@@ -66,6 +68,8 @@ struct AllocatorTraits
|
|||||||
{
|
{
|
||||||
OSL_FAIL("operator delete mismatch");
|
OSL_FAIL("operator delete mismatch");
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
(void) this; // silence loplugin:staticmethods
|
||||||
#endif /* OSL_DEBUG_LEVEL */
|
#endif /* OSL_DEBUG_LEVEL */
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user