Silence loplugin:staticmethods under --disable-debug
...after 0d3f9667bbc7b1a22d33dc92a2028fc712495a8e "AllocatorTraits::size can be static after all" Change-Id: I7fb2558c322dd7d92f3a3bda9a93a1b3da575d2e
This commit is contained in:
parent
6a4e4fc74b
commit
0f92d79708
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user