Suppress harmless unused parameter warnings in release build.

Use WXUNUSED_UNLESS_DEBUG() for the parameters used only inside debug checks.

Closes #16829.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2015-02-04 13:16:20 +00:00
parent 3d2d8fc4ab
commit 6c3dfd113b
2 changed files with 3 additions and 2 deletions

View File

@@ -2747,7 +2747,7 @@ static bool AlphaBlt(wxMSWDCImpl* dcDst,
int srcX, int srcY, int srcX, int srcY,
int srcWidth, int srcHeight, int srcWidth, int srcHeight,
HDC hdcSrc, HDC hdcSrc,
const wxBitmap& bmpSrc) const wxBitmap& WXUNUSED_UNLESS_DEBUG(bmpSrc))
{ {
wxASSERT_MSG( bmpSrc.IsOk() && bmpSrc.HasAlpha(), wxASSERT_MSG( bmpSrc.IsOk() && bmpSrc.HasAlpha(),
wxT("AlphaBlt(): invalid bitmap") ); wxT("AlphaBlt(): invalid bitmap") );

View File

@@ -1603,7 +1603,8 @@ void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
DoToggleTool(tool, tool->IsToggled()); DoToggleTool(tool, tool->IsToggled());
} }
void wxToolBar::DoToggleTool(wxToolBarToolBase *tool, bool toggle) void wxToolBar::DoToggleTool(wxToolBarToolBase *tool,
bool WXUNUSED_UNLESS_DEBUG(toggle))
{ {
wxASSERT_MSG( tool->IsToggled() == toggle, wxT("Inconsistent tool state") ); wxASSERT_MSG( tool->IsToggled() == toggle, wxT("Inconsistent tool state") );