From: Vadim Zeitlin Date: Wed, 7 Feb 2007 17:04:02 +0000 (+0000) Subject: fix unused variable warning with wxUSE_TOOLTIPS==0 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ddaa6e899bcc1be211e269ed2947a04b6d190be8 fix unused variable warning with wxUSE_TOOLTIPS==0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index a3ec62f705..aa66f2672c 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -817,7 +817,10 @@ MyPanel::MyPanel( wxFrame *frame, int x, int y, int w, int h ) }; panel = new wxPanel(m_book); - wxRadioBox *radio2 = new MyRadioBox( panel, ID_RADIOBOX, _T("&That"), wxPoint(10,160), wxDefaultSize, WXSIZEOF(choices2), choices2, 1, wxRA_SPECIFY_ROWS ); +#if wxUSE_TOOLTIPS + wxRadioBox *radio2 = +#endif // wxUSE_TOOLTIPS + new MyRadioBox( panel, ID_RADIOBOX, _T("&That"), wxPoint(10,160), wxDefaultSize, WXSIZEOF(choices2), choices2, 1, wxRA_SPECIFY_ROWS ); m_radio = new wxRadioBox( panel, ID_RADIOBOX, _T("T&his"), wxPoint(10,10), wxDefaultSize, WXSIZEOF(choices), choices, 1, wxRA_SPECIFY_COLS ); #if wxUSE_TOOLTIPS