Fix unused variable and parameter warnings in samples
These variables are only used in debug builds, causing warnings in release builds.
This commit is contained in:
@@ -1375,6 +1375,7 @@ void MyFrame::OnNotebookPageClose(wxAuiNotebookEvent& evt)
|
||||
void MyFrame::OnNotebookPageClosed(wxAuiNotebookEvent& evt)
|
||||
{
|
||||
wxAuiNotebook* ctrl = (wxAuiNotebook*)evt.GetEventObject();
|
||||
wxUnusedVar(ctrl);
|
||||
|
||||
// selection should always be a valid index
|
||||
wxASSERT_MSG( ctrl->GetSelection() < (int)ctrl->GetPageCount(),
|
||||
|
Reference in New Issue
Block a user