From e80be3e3cb322f12d20cada0d6493877735625fb Mon Sep 17 00:00:00 2001 From: Maarten Bent Date: Thu, 21 Nov 2019 21:27:57 +0100 Subject: [PATCH] Fix unreferenced function warning with wxUSE_DRAG_AND_DROP disabled --- src/msw/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/msw/window.cpp b/src/msw/window.cpp index ad808c60cd..23c965885c 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -1746,6 +1746,8 @@ void wxWindowMSW::Update() // drag and drop // --------------------------------------------------------------------------- +#if wxUSE_DRAG_AND_DROP + #if wxUSE_STATBOX // we need to lower the sibling static boxes so controls contained within can be @@ -1777,8 +1779,6 @@ static inline void AdjustStaticBoxZOrder(wxWindow * WXUNUSED(parent)) #endif // wxUSE_STATBOX/!wxUSE_STATBOX -#if wxUSE_DRAG_AND_DROP - void wxWindowMSW::SetDropTarget(wxDropTarget *pDropTarget) { if ( m_dropTarget != 0 ) {