Avoid harmless warning about unused variables in wxOSX/Carbon.
Declare the variables only used when wxUSE_STATUSBAR==1 inside the check for it. Closes #16331. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@76752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -356,12 +356,12 @@ void wxFrame::PositionToolBar()
|
||||
|
||||
wxTopLevelWindow::DoGetClientSize( &cw , &ch );
|
||||
|
||||
int statusX = 0 ;
|
||||
int statusY = 0 ;
|
||||
|
||||
#if wxUSE_STATUSBAR
|
||||
if (GetStatusBar() && GetStatusBar()->IsShown())
|
||||
{
|
||||
int statusX = 0 ;
|
||||
int statusY = 0 ;
|
||||
|
||||
GetStatusBar()->GetSize(&statusX, &statusY);
|
||||
ch -= statusY;
|
||||
}
|
||||
|
Reference in New Issue
Block a user