]> git.saurik.com Git - wxWidgets.git/commitdiff
silence unused var warning
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 28 Dec 2012 13:15:08 +0000 (13:15 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 28 Dec 2012 13:15:08 +0000 (13:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73285 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/combocmn.cpp

index ac476a5addc1005245937e3a8e7ff86daed3fd6b..af657ef34ddf14c5d9fa0f80331754aa1986130f 100644 (file)
@@ -2051,7 +2051,9 @@ void wxComboCtrlBase::OnCharEvent(wxKeyEvent& event)
 void wxComboCtrlBase::OnFocusEvent( wxFocusEvent& event )
 {
 // On Mac, this leads to infinite recursion and eventually a crash
-#ifndef __WXMAC__
+#ifdef __WXMAC__
+    wxUnusedVar(event);
+#else
     if ( event.GetEventType() == wxEVT_SET_FOCUS )
     {
         wxWindow* tc = GetTextCtrl();