diff --git a/src/generic/propdlg.cpp b/src/generic/propdlg.cpp index 80b24e73f8..aa4589b2b9 100644 --- a/src/generic/propdlg.cpp +++ b/src/generic/propdlg.cpp @@ -97,11 +97,12 @@ void wxPropertySheetDialog::LayoutDialog(int centreFlags) GetSizer()->SetSizeHints(this); if (centreFlags) Centre(centreFlags); +#else + wxUnusedVar(centreFlags); #endif #if defined(__SMARTPHONE__) if (m_bookCtrl) m_bookCtrl->SetFocus(); - wxUnusedVar(centreFlags); #endif } diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index 738d07c711..85d93d73a9 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -1133,6 +1133,7 @@ bool wxMenuBar::Insert(size_t pos, wxMenu *menu, const wxString& title) wxLogLastError(wxT("TB_INSERTBUTTON")); return false; } + wxUnusedVar(mswpos); #else if ( !::InsertMenu(GetHmenu(), mswpos, MF_BYPOSITION | MF_POPUP | MF_STRING,