From: Vadim Zeitlin Date: Tue, 26 Jan 2010 09:01:02 +0000 (+0000) Subject: No real changes, just don't initialize extern variable to avoid g++ warning. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0369a9fedfe4a3c6d7d04be5a6196d83dd7c727a No real changes, just don't initialize extern variable to avoid g++ warning. g++ warns about initialized extern variables so separate the declaration from the initialization to avoid this warning. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63270 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 81b6b93e5b..4d93f44092 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4802,7 +4802,8 @@ wxColour wxWindowMSW::MSWGetThemeColour(const wchar_t *themeName, // endless stream of WM_PAINT messages for this window resulting in a lot of // difficult to debug problems (e.g. impossibility to repaint other windows, // lack of timer and idle events and so on) -extern bool wxDidCreatePaintDC = false; +extern bool wxDidCreatePaintDC; +bool wxDidCreatePaintDC = false; bool wxWindowMSW::HandlePaint() {