]> git.saurik.com Git - wxWidgets.git/commitdiff
No real changes, just don't initialize extern variable to avoid g++ warning.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jan 2010 09:01:02 +0000 (09:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Jan 2010 09:01:02 +0000 (09:01 +0000)
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

src/msw/window.cpp

index 81b6b93e5b059978f1fd4976a171b6cb1dbeb87b..4d93f440928cee70f3c49c203a442b9f88d21a55 100644 (file)
@@ -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()
 {