fix a couple of harmless warnings during wxOSX build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-06-18 22:54:21 +00:00
parent 4868bfb17e
commit c22ace4dff
9 changed files with 27 additions and 29 deletions

View File

@@ -647,17 +647,10 @@ wxRendererGeneric::DrawPushButton(wxWindow *win,
}
void
#ifdef __WXMAC__
wxRendererGeneric::DrawItemSelectionRect(wxWindow * win,
wxDC& dc,
const wxRect& rect,
int flags)
#else
wxRendererGeneric::DrawItemSelectionRect(wxWindow * WXUNUSED(win),
wxDC& dc,
const wxRect& rect,
int flags)
#endif
{
wxBrush brush;
if ( flags & wxCONTROL_SELECTED )
@@ -687,6 +680,9 @@ wxRendererGeneric::DrawItemSelectionRect(wxWindow * WXUNUSED(win),
dc.SetPen( *wxTRANSPARENT_PEN );
dc.DrawRectangle( rect );
// it's unused everywhere except in wxOSX/Carbon
wxUnusedVar(win);
}
void