From 2fa68e336b13fd8be2b4f7974707619010e4b109 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 10 May 2007 02:07:41 +0000 Subject: [PATCH] fix unused variable warning under non-MSW platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@45938 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/evtloopcmn.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/evtloopcmn.cpp b/src/common/evtloopcmn.cpp index bc4e88ef0f..c9d5da76b4 100644 --- a/src/common/evtloopcmn.cpp +++ b/src/common/evtloopcmn.cpp @@ -41,11 +41,7 @@ struct wxRunningEventLoopCounter ~wxRunningEventLoopCounter() { wxRunningEventLoopCount--; } }; -#else // !__WXMSW__ - -struct wxRunningEventLoopCounter { }; - -#endif // __WXMSW__/!__WXMSW__ +#endif // __WXMSW__ // ---------------------------------------------------------------------------- // globals @@ -76,7 +72,9 @@ int wxEventLoopManual::Run() // should undo wxEventLoopActivator activate(wx_static_cast(wxEventLoop *, this)); +#if defined(__WXMSW__) && wxUSE_THREADS wxRunningEventLoopCounter evtLoopCounter; +#endif // __WXMSW__ // we must ensure that OnExit() is called even if an exception is thrown // from inside Dispatch() but we must call it from Exit() in normal