From ba1c305343b42c24f313d5e7aeaf72187274e8b5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 23 Jun 2014 01:08:55 +0000 Subject: [PATCH] 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 --- src/osx/carbon/frame.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osx/carbon/frame.cpp b/src/osx/carbon/frame.cpp index 01c8825444..72960b3b8d 100644 --- a/src/osx/carbon/frame.cpp +++ b/src/osx/carbon/frame.cpp @@ -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; }