Remove harmless unused variables warnings in non-debug build

Suppress a few -Wunused-variable and -Wunused-parameter warnings when
using --disable-debug.
This commit is contained in:
Vadim Zeitlin
2021-02-14 12:43:30 +01:00
parent 70793777b6
commit d89d3b6851
3 changed files with 6 additions and 3 deletions

View File

@@ -1411,19 +1411,19 @@ bool wxBitmap::HasAlpha() const
}
#if WXWIN_COMPATIBILITY_3_0
void wxBitmap::SetWidth(int w)
void wxBitmap::SetWidth(int WXUNUSED_UNLESS_DEBUG(w))
{
AllocExclusive();
wxASSERT_MSG( GetWidth() == w, "Changing the bitmap width is not supported");
}
void wxBitmap::SetHeight(int h)
void wxBitmap::SetHeight(int WXUNUSED_UNLESS_DEBUG(h))
{
AllocExclusive();
wxASSERT_MSG( GetHeight() == h, "Changing the bitmap height is not supported");
}
void wxBitmap::SetDepth(int d)
void wxBitmap::SetDepth(int WXUNUSED_UNLESS_DEBUG(d))
{
AllocExclusive();
wxASSERT_MSG( d == -1 || GetDepth() == d, "Changing the bitmap depth is not supported");