From a316942c18e516ba212dd7f537173485285c7a90 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 31 Oct 2018 23:26:02 +0100 Subject: [PATCH] Don't use "extern" when initializing wxCurrentPopupWindow Avoid (harmless) warning about the variable being initialized and declared "extern" added by 56c419116838045f23f046112960d4e42f98f80d. --- src/msw/popupwin.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index 406733d73d..3784c52a98 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -33,7 +33,10 @@ #include "wx/msw/private.h" // for GetDesktopWindow() // Set to the popup window currently being shown, if any. -extern wxPopupWindow* wxCurrentPopupWindow = NULL; +// +// Note that this global variable is used in src/msw/window.cpp and so must be +// extern. +wxPopupWindow* wxCurrentPopupWindow = NULL; // ============================================================================ // implementation