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:
Vadim Zeitlin
2014-06-23 01:08:55 +00:00
parent e2e79bd000
commit ba1c305343

View File

@@ -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;
}