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:
@@ -2747,7 +2747,7 @@ static bool AlphaBlt(wxMSWDCImpl* dcDst,
|
||||
int srcX, int srcY,
|
||||
int srcWidth, int srcHeight,
|
||||
HDC hdcSrc,
|
||||
const wxBitmap& bmpSrc)
|
||||
const wxBitmap& WXUNUSED_UNLESS_DEBUG(bmpSrc))
|
||||
{
|
||||
wxASSERT_MSG( bmpSrc.IsOk() && bmpSrc.HasAlpha(),
|
||||
wxT("AlphaBlt(): invalid bitmap") );
|
||||
|
@@ -1603,7 +1603,8 @@ void wxToolBar::DoEnableTool(wxToolBarToolBase *tool, bool enable)
|
||||
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") );
|
||||
|
||||
|
Reference in New Issue
Block a user